Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -610,7 +610,7 @@ |
611 | 611 | * @return mixed (allowMultiple ? an_array_of_values : a_single_value) |
612 | 612 | */ |
613 | 613 | protected function parseMultiValue($valueName, $value, $allowMultiple, $allowedValues) { |
614 | | - if( trim($value) === "" ) |
| 614 | + if( trim($value) === "" && $allowMultiple) |
615 | 615 | return array(); |
616 | 616 | $sizeLimit = $this->mMainModule->canApiHighLimits() ? self::LIMIT_SML2 : self::LIMIT_SML1; |
617 | 617 | $valuesList = explode('|', $value, $sizeLimit + 1); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -437,6 +437,7 @@ |
438 | 438 | users |
439 | 439 | * (bug 13049) "API must be accessed from the primary script entry point" error |
440 | 440 | * (bug 18601) generator=backlinks returns invalid continue parameter |
| 441 | +* (bug 18597) Internal error with empty generator= parameter |
441 | 442 | |
442 | 443 | === Languages updated in 1.15 === |
443 | 444 | |