X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiParamInfo.php;h=f1967354ff14356f3250d9a2f9c479024918686d;hp=c81cf7ee13c6c2ba1f4ff6d7e77c285c441204c2;hb=de64366f58f0af7a02a417833c8e0605e4140fab;hpb=97402532d48de203925a850a4afa2d8f43e3dd9f diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index c81cf7ee13..f1967354ff 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -361,7 +361,7 @@ class ApiParamInfo extends ApiBase { break; case 'integer': case 'limit': - $item['default'] = intval( $settings[ApiBase::PARAM_DFLT] ); + $item['default'] = (int)$settings[ApiBase::PARAM_DFLT]; break; case 'timestamp': $item['default'] = wfTimestamp( TS_ISO_8601, $settings[ApiBase::PARAM_DFLT] );