Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiQueryWatchlistRaw.php
index 0adbfdb..743e974 100644 (file)
@@ -73,7 +73,7 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase {
                if ( isset( $params['continue'] ) ) {
                        $cont = explode( '|', $params['continue'] );
                        $this->dieContinueUsageIf( count( $cont ) != 2 );
-                       $ns = intval( $cont[0] );
+                       $ns = (int)$cont[0];
                        $this->dieContinueUsageIf( strval( $ns ) !== $cont[0] );
                        $title = $cont[1];
                        $options['startFrom'] = new TitleValue( $ns, $title );