Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -45,7 +45,6 @@ |
46 | 46 | $fld_patrolled = false, $fld_tags = false; |
47 | 47 | |
48 | 48 | public function execute() { |
49 | | - |
50 | 49 | // Parse some parameters |
51 | 50 | $this->params = $this->extractRequestParams(); |
52 | 51 | |
— | — | @@ -74,6 +73,8 @@ |
75 | 74 | $this->usernames = array(); |
76 | 75 | if(!is_array($this->params['user'])) |
77 | 76 | $this->params['user'] = array($this->params['user']); |
| 77 | + if(!count($this->params['user'])) |
| 78 | + $this->dieUsage('User parameter may not be empty.', 'param_user'); |
78 | 79 | foreach($this->params['user'] as $u) |
79 | 80 | $this->prepareUsername($u); |
80 | 81 | $this->prefixMode = false; |
Property changes on: trunk/phase3/includes/api |
___________________________________________________________________ |
Name: svn:mergeinfo |
81 | 82 | + /branches/REL1_15/phase3/includes/api:51646 |
/branches/sqlite/includes/api:58211-58321 |
/branches/wmf-deployment/includes/api:53381,59952 |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -743,6 +743,7 @@ |
744 | 744 | * (bug 20967) action=edit allows creation of invalid titles |
745 | 745 | * (bug 19523) Add inprop=watched to prop=info |
746 | 746 | * (bug 21589) API: Separate summary and initial page text for uploads |
| 747 | +* (bug 21817) list=usercontribs returns empty result for empty ucuser |
747 | 748 | |
748 | 749 | === Languages updated in 1.16 === |
749 | 750 | |