]> git.wh0rd.org Git - tt-rss.git/commitdiff
purge orphans after deleting articles
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Mar 2013 11:20:26 +0000 (15:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Mar 2013 11:20:26 +0000 (15:20 +0400)
classes/rpc.php

index 66bdb86b03a80052cef084919947af1cc238206c..b292f44e42f4aa189ec8b9f36a1e139eaef45691 100644 (file)
@@ -152,6 +152,8 @@ class RPC extends Handler_Protected {
                $result = db_query($this->link, "DELETE FROM ttrss_user_entries
                WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]);
 
+               purge_orphans($this->link);
+
                print json_encode(array("message" => "UPDATE_COUNTERS"));
        }