Index: branches/wmf/1.16wmf4/includes/api/ApiBase.php |
— | — | @@ -475,8 +475,10 @@ |
476 | 476 | $params = $this->getFinalParams(); |
477 | 477 | $results = array(); |
478 | 478 | |
479 | | - foreach ( (array)$params as $paramName => $paramSettings ) { |
480 | | - $results[$paramName] = $this->getParameterFromSettings( $paramName, $paramSettings, $parseLimit ); |
| 479 | + if($params) { /* getFinalParams() can return false */ |
| 480 | + foreach ( $params as $paramName => $paramSettings ) { |
| 481 | + $results[$paramName] = $this->getParameterFromSettings( $paramName, $paramSettings, $parseLimit ); |
| 482 | + } |
481 | 483 | } |
482 | 484 | |
483 | 485 | return $results; |
Property changes on: branches/wmf/1.16wmf4/includes/api |
___________________________________________________________________ |
Name: svn:mergeinfo |
484 | 486 | - /branches/REL1_15/phase3/includes/api:51646 |
/branches/sqlite/includes/api:58211-58321 |
/branches/wmf-deployment/includes/api:53381,59952,60970 |
/trunk/phase3/includes/api:63549,63764,63897-63901 |
485 | 487 | + /branches/REL1_15/phase3/includes/api:51646 |
/branches/sqlite/includes/api:58211-58321 |
/branches/wmf-deployment/includes/api:53381,59952,60970 |
/trunk/phase3/includes/api:63549,63764,63897-63901,64454 |