From: Andrew Dolgov Date: Fri, 29 Mar 2013 11:20:26 +0000 (+0400) Subject: purge orphans after deleting articles X-Git-Tag: 1.7.6~167 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f0d3c94aa7d3ccf8c2c0511fb4a06e68938517e6;p=tt-rss.git purge orphans after deleting articles --- diff --git a/classes/rpc.php b/classes/rpc.php index 66bdb86b..b292f44e 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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")); }