Index: trunk/phase3/includes/Title.php |
— | — | @@ -2596,7 +2596,7 @@ |
2597 | 2597 | |
2598 | 2598 | # Initial colon indicates main namespace rather than specified default |
2599 | 2599 | # but should not create invalid {ns,title} pairs such as {0,Project:Foo} |
2600 | | - if ( ':' == $dbkey { 0 } ) { |
| 2600 | + if ( ':' == $dbkey[0] ) { |
2601 | 2601 | $this->mNamespace = NS_MAIN; |
2602 | 2602 | $dbkey = substr( $dbkey, 1 ); # remove the colon but continue processing |
2603 | 2603 | $dbkey = trim( $dbkey, '_' ); # remove any subsequent whitespace |