X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryCategoryInfo.php;h=bb48290e8baacd624d01fca1fd87c38a961b7bb7;hb=4691389fa46f79cbeaf2daffda407cf7daa66fd4;hp=25e9b27499aefe158a1d6620041aada354c2cfc4;hpb=c66360d167aeacec8ec296ae8ff29fd5d3f1a557;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 25e9b27499..bb48290e8b 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -82,10 +78,10 @@ class ApiQueryCategoryInfo extends ApiQueryBase { $catids = array_flip( $cattitles ); foreach ( $res as $row ) { $vals = []; - $vals['size'] = intval( $row->cat_pages ); + $vals['size'] = (int)$row->cat_pages; $vals['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files; - $vals['files'] = intval( $row->cat_files ); - $vals['subcats'] = intval( $row->cat_subcats ); + $vals['files'] = (int)$row->cat_files; + $vals['subcats'] = (int)$row->cat_subcats; $vals['hidden'] = (bool)$row->cat_hidden; $fit = $this->addPageSubItems( $catids[$row->cat_title], $vals ); if ( !$fit ) {