Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -1321,7 +1321,7 @@ |
1322 | 1322 | |
1323 | 1323 | // Only find all groups if the user has any groups; otherwise, we are |
1324 | 1324 | // just wasting a search. |
1325 | | - if ( ( isset( $wgLDAPGroupsPrevail[$_SESSION['wsDomain']] ). |
| 1325 | + if ( ( isset( $wgLDAPGroupsPrevail[$_SESSION['wsDomain']] ) |
1326 | 1326 | && $wgLDAPGroupsPrevail[$_SESSION['wsDomain']] ) && count( $this->userLDAPGroups ) != 0 ) { |
1327 | 1327 | $this->allLDAPGroups = $this->searchGroups( '*' ); |
1328 | 1328 | } |