Skip to content

Commit

Permalink
Merge pull request #162 from swiffer/master
Browse files Browse the repository at this point in the history
make us of db_affected_rows($result) instead of using db specific functions
  • Loading branch information
Andrew Dolgov committed Apr 17, 2013
2 parents 8a38652 + a08f94b commit 6b7bc70
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ function purge_feed($feed_id, $purge_interval, $debug = false) {
ttrss_entries.date_updated < NOW() - INTERVAL '$purge_interval days'");
}

$rows = pg_affected_rows($result);

} else {

/* $result = db_query("DELETE FROM ttrss_user_entries WHERE
Expand All @@ -239,11 +237,10 @@ function purge_feed($feed_id, $purge_interval, $debug = false) {
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) {
Expand Down

0 comments on commit 6b7bc70

Please sign in to comment.