viewfeed: only return counters when subop is present

This commit is contained in:
Andrew Dolgov 2010-11-11 13:38:29 +03:00
parent 1ede58149d
commit dd25b0c6cd
1 changed files with 2 additions and 1 deletions

View File

@ -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>";