purge orphans after deleting articles

This commit is contained in:
Andrew Dolgov 2013-03-29 15:20:26 +04:00
parent 32b05702ff
commit f0d3c94aa7
1 changed files with 2 additions and 0 deletions

View File

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