Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / includes / api / ApiQueryPageProps.php
index 2bee698..61d8a94 100644 (file)
@@ -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;
                }