X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllCategories.php;h=a2fb5c364e25ff1ad11144eb896a54795934e822;hb=5446238520cceb067792338cdfc83a343b480e15;hp=60b57bfc3a23a6950308a58013480bc87ae3967d;hpb=03f81522c5a7a0aa758a30183288709f17f36cb9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 60b57bfc3a..a2fb5c364e 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -57,6 +57,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { $this->addTables( 'category' ); $this->addFields( 'cat_title' ); + $this->addWhere( 'cat_pages > 0' ); $dir = ( $params['dir'] == 'descending' ? 'older' : 'newer' ); $from = ( is_null( $params['from'] ) ? null : $this->titlePartToKey( $params['from'] ) );