]> git.wh0rd.org Git - tt-rss.git/commitdiff
make us of db_affected_rows($result) instead of using db specific functions
authorMatthias Wirtz <matthias.wirtz@hotmail.de>
Wed, 17 Apr 2013 18:24:07 +0000 (20:24 +0200)
committerMatthias Wirtz <matthias.wirtz@hotmail.de>
Wed, 17 Apr 2013 18:24:07 +0000 (20:24 +0200)
include/functions.php

index 66d5896d13e2d349a7a23b318f5478009c4fb08e..8215127de0366aed23b6bb5096f7c53d2c8a0245 100644 (file)
                                        ttrss_entries.date_updated < NOW() - INTERVAL '$purge_interval days'");
                        }
 
-                       $rows = pg_affected_rows($result);
-
                } else {
 
 /*                     $result = db_query("DELETE FROM ttrss_user_entries WHERE
                                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) {