Index: branches/REL1_16/phase3/includes/api/ApiBase.php |
— | — | @@ -475,8 +475,10 @@ |
476 | 476 | $params = $this->getFinalParams(); |
477 | 477 | $results = array(); |
478 | 478 | |
479 | | - foreach ( $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; |