summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-17 13:05:26 -0700
committerAndrew Dolgov <[email protected]>2013-04-17 13:05:26 -0700
commit6b7bc706f3d2abd4419fb47746bad1ed4292dbce (patch)
treeed9110c0c968a5cdb5a4b1a35e45a12a08332934
parent8a386529a18046a53e68c931053b8eee4f4a2e0b (diff)
parenta08f94bd0e177c4ffaf9211e0e4c3872a68ac35b (diff)
Merge pull request #162 from swiffer/master
make us of db_affected_rows($result) instead of using db specific functions
-rw-r--r--include/functions.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/functions.php b/include/functions.php
index 66d5896d1..8215127de 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) {