fix update_label_counters bug

This commit is contained in:
Andrew Dolgov 2005-09-09 04:11:32 +01:00
parent f99321a310
commit e47cfe377b

View file

@ -331,7 +331,12 @@ function label_counters_callback() {
function update_label_counters(feed) { function update_label_counters(feed) {
if (xmlhttp_ready(xmlhttp_rpc)) { 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.open("GET", query, true);
xmlhttp_rpc.onreadystatechange=label_counters_callback; xmlhttp_rpc.onreadystatechange=label_counters_callback;
xmlhttp_rpc.send(null); xmlhttp_rpc.send(null);