From ffe8c4594e45c7a7f6a6620a2abcba11eff446a7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 28 Nov 2004 02:46:52 +0000 Subject: [PATCH] Avoid undefined string index notice on {{}} --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 433487a5f6..9174af33c3 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1383,7 +1383,7 @@ class Parser $fname = 'Parser::maybeDoSubpageLink'; wfProfileIn( $fname ); # Look at the first character - if( $target{0} == '/' ) { + if( $target != '' && $target{0} == '/' ) { # / at end means we don't want the slash to be shown if(substr($target,-1,1)=='/') { $target=substr($target,1,-1); -- 2.20.1