]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix update_label_counters bug
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Sep 2005 03:11:32 +0000 (04:11 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Sep 2005 03:11:32 +0000 (04:11 +0100)
functions.js

index 909d34e12789435f71f79627aaebd42dc64204ab..b6b608e71b428d758897df987706d4317f076f6b 100644 (file)
@@ -331,7 +331,12 @@ function label_counters_callback() {
 
 function update_label_counters(feed) {
        if (xmlhttp_ready(xmlhttp_rpc)) {
-               var query = "backend.php?op=rpc&subop=getLabelCounters&aid=" + feed;    
+               var query = "backend.php?op=rpc&subop=getLabelCounters";
+
+               if (feed > 0) {
+                       query = query + "&aid=" + feed;
+               }
+
                xmlhttp_rpc.open("GET", query, true);
                xmlhttp_rpc.onreadystatechange=label_counters_callback;
                xmlhttp_rpc.send(null);