From: River Tarnell Date: Thu, 9 Sep 2004 23:24:36 +0000 (+0000) Subject: here is the correct fix for head (MF 1.3) X-Git-Tag: 1.5.0alpha1~2035 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=5012260a953f2b091d362bbaa4edb79acf0a4f9d;p=lhc%2Fweb%2Fwiklou.git here is the correct fix for head (MF 1.3) --- diff --git a/includes/Parser.php b/includes/Parser.php index be98d71c3a..b59ac6c369 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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 );