viewfeed: only return counters when subop is present

master
Andrew Dolgov 14 years ago
parent 1ede58149d
commit dd25b0c6cd

@ -387,7 +387,8 @@
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info); if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info);
if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop) { //if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop) {
if ($subop) {
print "<counters><![CDATA["; print "<counters><![CDATA[";
print json_encode(getAllCounters($link, $omode, $feed)); print json_encode(getAllCounters($link, $omode, $feed));
print "]]></counters>"; print "]]></counters>";

Loading…
Cancel
Save