Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | |
133 | 133 | //handle missing type |
134 | 134 | if ( !isset( $p[ApiBase::PARAM_TYPE] ) ) { |
135 | | - $dflt = $p[ApiBase::PARAM_DFLT]; |
| 135 | + $dflt = isset( $p[ApiBase::PARAM_DFLT] ) ? $p[ApiBase::PARAM_DFLT] : null; |
136 | 136 | if ( is_bool( $dflt ) ) { |
137 | 137 | $p[ApiBase::PARAM_TYPE] = 'bool'; |
138 | 138 | } elseif ( is_string( $dflt ) || is_null( $dflt ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -352,6 +352,7 @@ |
353 | 353 | * (bug 26882) Allow listing of indefinite protections with the api |
354 | 354 | * (bug 27344) add drprefix param to list=deletedrevs |
355 | 355 | * (bug 28560) list=deletedrevs should die, if combination of param is invalid |
| 356 | +* (bug 28702) Undefined offset in ApiParamInfo.php |
356 | 357 | |
357 | 358 | === Languages updated in 1.18 === |
358 | 359 | |