Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiQueryTags.php
index ed5fe8a..f104383 100644 (file)
@@ -85,7 +85,7 @@ class ApiQueryTags extends ApiQueryBase {
                        }
 
                        if ( $fld_hitcount ) {
-                               $tag['hitcount'] = intval( $tagHitcounts[$tagName] );
+                               $tag['hitcount'] = (int)$tagHitcounts[$tagName];
                        }
 
                        $isSoftware = isset( $softwareDefinedTags[$tagName] );