From: Platonides Date: Sun, 19 Jun 2011 21:05:26 +0000 (+0000) Subject: Use [] instead of { } for accessing string characters X-Git-Tag: 1.31.0-rc.0~29410 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=2879cc3890c29f079b46eed43e320b3bd3b2919d;p=lhc%2Fweb%2Fwiklou.git Use [] instead of { } for accessing string characters --- diff --git a/includes/Title.php b/includes/Title.php index 1ec84540f2..ebbf1e1128 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2596,7 +2596,7 @@ class Title { # Initial colon indicates main namespace rather than specified default # but should not create invalid {ns,title} pairs such as {0,Project:Foo} - if ( ':' == $dbkey { 0 } ) { + if ( ':' == $dbkey[0] ) { $this->mNamespace = NS_MAIN; $dbkey = substr( $dbkey, 1 ); # remove the colon but continue processing $dbkey = trim( $dbkey, '_' ); # remove any subsequent whitespace