From 26be14ea2d9df3eee382c6bfeecf52ce61c32f2b Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 14 Aug 2012 21:34:09 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryTags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1