Index: trunk/extensions/Wikilog/SpecialWikilog.php |
— | — | @@ -402,8 +402,7 @@ |
403 | 403 | public static function getQuery( $opts ) { |
404 | 404 | $query = new WikilogItemQuery(); |
405 | 405 | $query->setPubStatus( $opts['show'] ); |
406 | | - if ( ( $t = $opts['wikilog'] ) ) { |
407 | | - $t = Title::newFromText( $t ); |
| 406 | + if ( $opts['wikilog'] && ( $t = Title::newFromText( $opts['wikilog'] ) ) ) { |
408 | 407 | if ( $t->getText() == '*' ) { |
409 | 408 | $query->setNamespace( $t->getNamespace() ); |
410 | 409 | } else { |