From: umherirrender Date: Tue, 14 Aug 2012 19:34:09 +0000 (+0200) Subject: Notice: Undefined property: stdClass::$hitcount in list=tags X-Git-Tag: 1.31.0-rc.0~22732^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=26be14ea2d9df3eee382c6bfeecf52ce61c32f2b;p=lhc%2Fweb%2Fwiklou.git Notice: Undefined property: stdClass::$hitcount in list=tags Full message: Notice: Undefined property: stdClass::$hitcount in ..\includes\api\ApiQueryTags.php on line 76 Change-Id: I773e0a5f70ee025033899d6950336dff0829e09b --- diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index edd1553c0b..a319667b45 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -73,7 +73,7 @@ class ApiQueryTags extends ApiQueryBase { if ( !$ok ) { break; } - $ok = $this->doTag( $row->ct_tag, $row->hitcount ); + $ok = $this->doTag( $row->ct_tag, $this->fld_hitcount ? $row->hitcount : 0 ); } // include tags with no hits yet