From: Matthias Wirtz Date: Wed, 17 Apr 2013 18:24:07 +0000 (+0200) Subject: make us of db_affected_rows($result) instead of using db specific functions X-Git-Tag: 1.7.9~25^2~154^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a08f94bd0e177c4ffaf9211e0e4c3872a68ac35b;p=tt-rss.git make us of db_affected_rows($result) instead of using db specific functions --- diff --git a/include/functions.php b/include/functions.php index 66d5896d..8215127d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -223,8 +223,6 @@ ttrss_entries.date_updated < NOW() - INTERVAL '$purge_interval days'"); } - $rows = pg_affected_rows($result); - } else { /* $result = db_query("DELETE FROM ttrss_user_entries WHERE @@ -239,11 +237,10 @@ feed_id = '$feed_id' AND $query_limit ttrss_entries.date_updated < DATE_SUB(NOW(), INTERVAL $purge_interval DAY)"); - - $rows = mysql_affected_rows(); - } + $rows = db_affected_rows($result); + ccache_update($feed_id, $owner_uid); if ($debug) {