diff options
author | Andrew Dolgov <[email protected]> | 2013-03-29 15:20:26 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-29 15:20:26 +0400 |
commit | f0d3c94aa7d3ccf8c2c0511fb4a06e68938517e6 (patch) | |
tree | e7ce67aa78d9e9f649042854dae04efdc5eaf63c | |
parent | 32b05702ff2245d8455c49c6b3e86405d496f881 (diff) |
purge orphans after deleting articles
-rw-r--r-- | classes/rpc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 66bdb86b0..b292f44e4 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")); } |