summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-04 23:09:13 +0300
committerAndrew Dolgov <[email protected]>2010-11-04 23:09:13 +0300
commita8f447f3985f483588ea8d6e9a0c081e2def6af8 (patch)
treefcca9a4d7b1e0fdbab48d25ba12c5959d49e8a21 /modules
parent6a7817c1ad684ea6eb0b02180e6d2040b3cb0a77 (diff)
fix background refresh being broken when no counter data is sent
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 228d45a78..5ff35b409 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -293,15 +293,13 @@
print "<rpc-reply>";
- print "<counters><![CDATA[";
-
if ($global_unread_caller != $global_unread) {
+ print "<counters><![CDATA[";
$omode = $_REQUEST["omode"];
print json_encode(getAllCounters($link, $omode));
+ print "]]></counters>";
}
- print "]]></counters>";
-
print_runtime_info($link);
print "</rpc-reply>";