Index: branches/wmf-deployment/includes/api/ApiQueryUserContributions.php |
— | — | @@ -45,7 +45,6 @@ |
46 | 46 | $fld_patrolled = false; |
47 | 47 | |
48 | 48 | public function execute() { |
49 | | - |
50 | 49 | // Parse some parameters |
51 | 50 | $this->params = $this->extractRequestParams(); |
52 | 51 | |
— | — | @@ -73,6 +72,8 @@ |
74 | 73 | $this->usernames = array(); |
75 | 74 | if(!is_array($this->params['user'])) |
76 | 75 | $this->params['user'] = array($this->params['user']); |
| 76 | + if(!count($this->params['user'])) |
| 77 | + $this->dieUsage('User parameter may not be empty.', 'param_user'); |
77 | 78 | foreach($this->params['user'] as $u) |
78 | 79 | $this->prepareUsername($u); |
79 | 80 | $this->prefixMode = false; |