X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPageProps.php;h=61d8a9410fe9bd9297ce0b0a5b23f407fed91856;hb=ab2e77bb5d228683c2458bcec16559ac10cd2c01;hp=2bee69837e3382c0377735bc201fc968c76f29b4;hpb=8a4a8a8dcbaf454c9f64cd8b5ba90704d7721500;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 2bee69837e..61d8a9410f 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -39,7 +39,7 @@ class ApiQueryPageProps extends ApiQueryBase { $this->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 ) { @@ -50,7 +50,7 @@ class ApiQueryPageProps extends ApiQueryBase { $pages = $filteredPages; } - if ( !count( $pages ) ) { + if ( $pages === [] ) { # Nothing to do return; }