From: Brion Vibber Date: Sun, 28 Nov 2004 02:46:52 +0000 (+0000) Subject: Avoid undefined string index notice on {{}} X-Git-Tag: 1.5.0alpha1~1211 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=ffe8c4594e45c7a7f6a6620a2abcba11eff446a7;p=lhc%2Fweb%2Fwiklou.git Avoid undefined string index notice on {{}} --- 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);