Index: trunk/phase3/includes/SpecialPageFactory.php |
— | — | @@ -346,11 +346,9 @@ |
347 | 347 | $pages = array(); |
348 | 348 | foreach ( self::getList() as $name => $rec ) { |
349 | 349 | $page = self::getPage( $name ); |
350 | | - if ( $page->isListed() |
351 | | - && ( |
352 | | - !$page->isRestricted() |
353 | | - || $page->userCanExecute( $wgUser ) |
354 | | - ) |
| 350 | + if ( $page // not null |
| 351 | + && $page->isListed() |
| 352 | + && ( !$page->isRestricted() || $page->userCanExecute( $wgUser ) ) |
355 | 353 | ) { |
356 | 354 | $pages[$name] = $page; |
357 | 355 | } |