X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPageProps.php;h=61d8a9410fe9bd9297ce0b0a5b23f407fed91856;hb=ab2e77bb5d228683c2458bcec16559ac10cd2c01;hp=e49dfbcf1d347947b3de84261a8c1052b11785db;hpb=2ffff73a46c29cdad1cbf59063f4dd75debd3b4c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index e49dfbcf1d..61d8a9410f 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -1,9 +1,5 @@ params = $this->extractRequestParams(); if ( $this->params['continue'] ) { - $continueValue = intval( $this->params['continue'] ); + $continueValue = (int)$this->params['continue']; $this->dieContinueUsageIf( strval( $continueValue ) !== $this->params['continue'] ); $filteredPages = []; foreach ( $pages as $id => $page ) { @@ -54,7 +50,7 @@ class ApiQueryPageProps extends ApiQueryBase { $pages = $filteredPages; } - if ( !count( $pages ) ) { + if ( $pages === [] ) { # Nothing to do return; }