Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6146
bug21817.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 10:51 PM
2014-11-21 22:51:03 (UTC+0)
Size
580 B
Referenced Files
None
Subscribers
None
bug21817.patch
View Options
Index: ApiQueryUserContributions.php
===================================================================
--- ApiQueryUserContributions.php (revision 59951)
+++ ApiQueryUserContributions.php (working copy)
@@ -74,6 +74,8 @@
$this->usernames = array();
if(!is_array($this->params['user']))
$this->params['user'] = array($this->params['user']);
+ if( !count( $this->params['user'] ) )
+ $this->dieUsage( 'User parameter may not be empty', 'param_user' );
foreach($this->params['user'] as $u)
$this->prepareUsername($u);
$this->prefixMode = false;
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5694
Default Alt Text
bug21817.patch (580 B)
Attached To
Mode
T23817: API returning empty results for list=usercontribs
Attached
Detach File
Event Timeline
Log In to Comment