mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 12:05:57 +00:00
fix background refresh being broken when no counter data is sent
This commit is contained in:
@@ -562,10 +562,12 @@ function parse_counters_reply(transport, scheduled_call) {
|
|||||||
|
|
||||||
var counters = reply.getElementsByTagName("counters")[0];
|
var counters = reply.getElementsByTagName("counters")[0];
|
||||||
|
|
||||||
|
if (counters)
|
||||||
parse_counters(counters, scheduled_call);
|
parse_counters(counters, scheduled_call);
|
||||||
|
|
||||||
var runtime_info = reply.getElementsByTagName("runtime-info")[0];
|
var runtime_info = reply.getElementsByTagName("runtime-info")[0];
|
||||||
|
|
||||||
|
if (runtime_info)
|
||||||
parse_runtime_info(runtime_info);
|
parse_runtime_info(runtime_info);
|
||||||
|
|
||||||
if (feedsSortByUnread()) {
|
if (feedsSortByUnread()) {
|
||||||
|
|||||||
@@ -293,14 +293,12 @@
|
|||||||
|
|
||||||
print "<rpc-reply>";
|
print "<rpc-reply>";
|
||||||
|
|
||||||
print "<counters><![CDATA[";
|
|
||||||
|
|
||||||
if ($global_unread_caller != $global_unread) {
|
if ($global_unread_caller != $global_unread) {
|
||||||
|
print "<counters><![CDATA[";
|
||||||
$omode = $_REQUEST["omode"];
|
$omode = $_REQUEST["omode"];
|
||||||
print json_encode(getAllCounters($link, $omode));
|
print json_encode(getAllCounters($link, $omode));
|
||||||
}
|
|
||||||
|
|
||||||
print "]]></counters>";
|
print "]]></counters>";
|
||||||
|
}
|
||||||
|
|
||||||
print_runtime_info($link);
|
print_runtime_info($link);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user