here is the correct fix for head (MF 1.3)
authorRiver Tarnell <kateturner@users.mediawiki.org>
Thu, 9 Sep 2004 23:24:36 +0000 (23:24 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Thu, 9 Sep 2004 23:24:36 +0000 (23:24 +0000)
includes/Parser.php

index be98d71..b59ac6c 100644 (file)
@@ -2094,12 +2094,15 @@ class Parser
                $valid = '0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ';
 
                foreach ( $a as $x ) {
-                       if ( $x == '' ) continue;
                        $isbn = $blank = '' ;
                        while ( ' ' == $x{0} ) {
                                $blank .= ' ';
                                $x = substr( $x, 1 );
                        }
+                       if ( $x == '' ) { # blank isbn
+                               $text .= "ISBN $blank";
+                               continue;
+                       }
                        while ( strstr( $valid, $x{0} ) != false ) {
                                $isbn .= $x{0};
                                $x = substr( $x, 1 );