X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllCategories.php;h=37fbe869e88f0cadb3be7814cae9e4dde76abff0;hb=4691389fa46f79cbeaf2daffda407cf7daa66fd4;hp=aa89158f902705ff81f4966c20909e6ad80109f4;hpb=3d831abcb7a29513ba170095b4afc35112d64829;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index aa89158f90..37fbe869e8 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -1,9 +1,5 @@ .@gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -130,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;