var counters = reply.getElementsByTagName("counters")[0];
- parse_counters(counters, scheduled_call);
+ if (counters)
+ parse_counters(counters, scheduled_call);
var runtime_info = reply.getElementsByTagName("runtime-info")[0];
- parse_runtime_info(runtime_info);
+ if (runtime_info)
+ parse_runtime_info(runtime_info);
if (feedsSortByUnread()) {
resort_feedlist();
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>";