dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd7c79
)
Avoid undefined string index notice on {{}}
author
Brion Vibber
<brion@users.mediawiki.org>
Sun, 28 Nov 2004 02:46:52 +0000
(
02:46
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sun, 28 Nov 2004 02:46:52 +0000
(
02:46
+0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
433487a
..
9174af3
100644
(file)
--- 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);