Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiParse.php
index 9f561b7..855b73d 100644 (file)
@@ -330,7 +330,7 @@ class ApiParse extends ApiBase {
                }
 
                if ( !is_null( $oldid ) ) {
-                       $result_array['revid'] = intval( $oldid );
+                       $result_array['revid'] = (int)$oldid;
                }
 
                if ( $params['redirects'] && !is_null( $redirValues ) ) {