http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84703

Revision: 84703
Author:   reedy
Date:     2011-03-24 20:27:30 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Followup r79549, only try and filter by group (or right) if there are some 
groups to do a WHERE on

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiQueryAllUsers.php

Modified: trunk/phase3/includes/api/ApiQueryAllUsers.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryAllUsers.php      2011-03-24 20:27:20 UTC 
(rev 84702)
+++ trunk/phase3/includes/api/ApiQueryAllUsers.php      2011-03-24 20:27:30 UTC 
(rev 84703)
@@ -85,7 +85,7 @@
                        }
                }
 
-               if ( !is_null( $params['group'] ) ) {
+               if ( !is_null( $params['group'] ) && count( $params['group'] ) 
) {
                        $useIndex = false;
                        // Filter only users that belong to a given group
                        $this->addTables( 'user_groups', 'ug1' );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to