From: Andrew Dolgov Date: Fri, 9 Sep 2005 03:11:32 +0000 (+0100) Subject: fix update_label_counters bug X-Git-Tag: 1.0.4~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e47cfe377bfebd3843ad00ead9eb7a71f6599dd0;p=tt-rss.git fix update_label_counters bug --- diff --git a/functions.js b/functions.js index 909d34e1..b6b608e7 100644 --- a/functions.js +++ b/functions.js @@ -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);