Index: trunk/extensions/Lockdown/Lockdown.php |
— | — | @@ -136,6 +136,12 @@ |
137 | 137 | |
138 | 138 | function lockdownSearchableNamespaces($arr) { |
139 | 139 | global $wgUser, $wgNamespacePermissionLockdown; |
| 140 | + |
| 141 | + //don't continue if $wgUser's name and id are both false (bug 28842) |
| 142 | + if ( $wgUser->getId() === NULL && $wgUser->getName() === NULL ) { |
| 143 | + return true; |
| 144 | + } |
| 145 | + |
140 | 146 | $ugroups = $wgUser->getEffectiveGroups(); |
141 | 147 | |
142 | 148 | foreach ( $arr as $ns => $name ) { |