Followup r85758 (bug 28254)
If no DFLT is set, fall back to "null", which means a string parameter
* (bug 26882) Allow listing of indefinite protections with the api
* (bug 27344) add drprefix param to list=deletedrevs
* (bug 28560) list=deletedrevs should die, if combination of param is invalid
+* (bug 28702) Undefined offset in ApiParamInfo.php
=== Languages updated in 1.18 ===
//handle missing type
if ( !isset( $p[ApiBase::PARAM_TYPE] ) ) {
- $dflt = $p[ApiBase::PARAM_DFLT];
+ $dflt = isset( $p[ApiBase::PARAM_DFLT] ) ? $p[ApiBase::PARAM_DFLT] : null;
if ( is_bool( $dflt ) ) {
$p[ApiBase::PARAM_TYPE] = 'bool';
} elseif ( is_string( $dflt ) || is_null( $dflt ) ) {