Fix notice on empty local links introduced by validity check in r13960
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 30 Apr 2006 16:40:45 +0000 (16:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 30 Apr 2006 16:40:45 +0000 (16:40 +0000)
includes/Title.php

index c384948..5c05477 100644 (file)
@@ -1518,7 +1518,7 @@ class Title {
                }
 
                // Any remaining initial :s are illegal.
-               if ( ':' == $t{0} ) {
+               if ( $t !== '' && ':' == $t{0} ) {
                        return false;
                }