Notice: Undefined property: stdClass::$hitcount in list=tags
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 14 Aug 2012 19:34:09 +0000 (21:34 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Tue, 14 Aug 2012 19:34:09 +0000 (21:34 +0200)
Full message:
Notice: Undefined property: stdClass::$hitcount in
..\includes\api\ApiQueryTags.php on line 76

Change-Id: I773e0a5f70ee025033899d6950336dff0829e09b

includes/api/ApiQueryTags.php

index edd1553..a319667 100644 (file)
@@ -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