| Index: trunk/phase3/includes/specials/SpecialLog.php |
| — | — | @@ -102,7 +102,7 @@ |
| 103 | 103 | if( in_array( $opts->getValue( 'type' ), $this->typeOnUser ) ) { |
| 104 | 104 | # ok we have a type of log which expect a user title. |
| 105 | 105 | $target = Title::newFromText( $opts->getValue( 'page' ) ); |
| 106 | | - if( $target->getNamespace() === NS_MAIN ) { |
| | 106 | + if( $target && $target->getNamespace() === NS_MAIN ) { |
| 107 | 107 | # User forgot to add 'User:', we are adding it for him |
| 108 | 108 | $opts->setValue( 'page', |
| 109 | 109 | Title::makeTitleSafe( NS_USER, $opts->getValue( 'page' ) ) |