From 76ec2612e6f5c5406a4c57131c9cd24b69f725b4 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 20 Nov 2011 22:39:26 +0000 Subject: [PATCH] Special:Log title can be an invalid thus trigger a Fatal error follow up r103711 --- includes/specials/SpecialLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index d0c42df5b4..b140a1750b 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -102,7 +102,7 @@ class SpecialLog extends SpecialPage { if( in_array( $opts->getValue( 'type' ), $this->typeOnUser ) ) { # ok we have a type of log which expect a user title. $target = Title::newFromText( $opts->getValue( 'page' ) ); - if( $target->getNamespace() === NS_MAIN ) { + if( $target && $target->getNamespace() === NS_MAIN ) { # User forgot to add 'User:', we are adding it for him $opts->setValue( 'page', Title::makeTitleSafe( NS_USER, $opts->getValue( 'page' ) ) -- 2.20.1