From 2879cc3890c29f079b46eed43e320b3bd3b2919d Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 19 Jun 2011 21:05:26 +0000 Subject: [PATCH] Use [] instead of { } for accessing string characters --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1