]> git.wh0rd.org - tt-rss.git/commitdiff
rpc/getAllCounters: include virtual counters when last_article_id is supplied and...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 12:51:06 +0000 (16:51 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 12:51:06 +0000 (16:51 +0400)
classes/rpc.php

index 46c8b0d85eba96f94efddf5c0a633df00dbfc489..18df21b16a317082dbec25bb1cdf7570adad2d02 100644 (file)
@@ -247,6 +247,8 @@ class RPC extends Handler_Protected {
 
                if ($last_article_id != getLastArticleId($this->link)) {
                        $reply['counters'] = getAllCounters($this->link);
+               } else {
+                       $reply['counters'] = getVirtCounters($this->link);
                }
 
                $reply['runtime-info'] = make_runtime_info($this->link);