X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllCategories.php;h=37fbe869e88f0cadb3be7814cae9e4dde76abff0;hb=8def7a9fc37a7af37c96bcc495bdc22e86059178;hp=4f833e0ce59e10898ccce7ff336025f236189d60;hpb=c9d303d39edcd78827a6ff2336cc84ba043444fa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 4f833e0ce5..37fbe869e8 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -126,10 +126,10 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { $item = []; ApiResult::setContentValue( $item, 'category', $titleObj->getText() ); if ( isset( $prop['size'] ) ) { - $item['size'] = intval( $row->cat_pages ); + $item['size'] = (int)$row->cat_pages; $item['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files; - $item['files'] = intval( $row->cat_files ); - $item['subcats'] = intval( $row->cat_subcats ); + $item['files'] = (int)$row->cat_files; + $item['subcats'] = (int)$row->cat_subcats; } if ( isset( $prop['hidden'] ) ) { $item['hidden'] = (bool)$row->cat_hidden;