* (bug 6560) Avoid PHP notice when trimming ISBN whitespace
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 6 Jul 2006 17:09:10 +0000 (17:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 6 Jul 2006 17:09:10 +0000 (17:09 +0000)
RELEASE-NOTES
includes/Parser.php

index c5eb4fd..2bacc07 100644 (file)
@@ -649,6 +649,8 @@ Some default configuration options have changed:
 * (bug 6570) Update to Indonesian localisation (id) #26
 * Added Telugu translation (te)
 * Update to Catalan translation (ca)
+* (bug 6560) Avoid PHP notice when trimming ISBN whitespace
+
 
 == Compatibility ==
 
index a533464..31976ba 100644 (file)
@@ -3405,7 +3405,7 @@ class Parser
                        }
 
                        $isbn = $blank = '' ;
-                       while ( ' ' == $x{0} ) {
+                       while ( $x !== '' && ' ' == $x{0} ) {
                                $blank .= ' ';
                                $x = substr( $x, 1 );
                        }