don't parse blank ISBNs
authorRiver Tarnell <kateturner@users.mediawiki.org>
Thu, 9 Sep 2004 23:04:08 +0000 (23:04 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Thu, 9 Sep 2004 23:04:08 +0000 (23:04 +0000)
includes/Parser.php

index f15b4e3..be98d71 100644 (file)
@@ -2094,6 +2094,7 @@ class Parser
                $valid = '0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ';
 
                foreach ( $a as $x ) {
+                       if ( $x == '' ) continue;
                        $isbn = $blank = '' ;
                        while ( ' ' == $x{0} ) {
                                $blank .= ' ';