From a8f447f3985f483588ea8d6e9a0c081e2def6af8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Nov 2010 23:09:13 +0300 Subject: [PATCH] fix background refresh being broken when no counter data is sent --- functions.js | 6 ++++-- modules/backend-rpc.php | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/functions.js b/functions.js index 9a1652ce..c0ba5b34 100644 --- a/functions.js +++ b/functions.js @@ -562,11 +562,13 @@ function parse_counters_reply(transport, scheduled_call) { 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(); diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 228d45a7..5ff35b40 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -293,15 +293,13 @@ print ""; - print ""; } - print "]]>"; - print_runtime_info($link); print ""; -- 2.39.5