Fix: pas de message d'erreur si le code n'est pas renseigné

This commit is contained in:
Regis Houssin 2007-09-29 11:55:30 +00:00
parent ab666cbe15
commit 77646e79e7

View File

@ -568,6 +568,7 @@ class pi_barcode
} }
extract($_GET); extract($_GET);
$type = strtoupper($type); $type = strtoupper($type);
if ($code){
switch( $type ) { switch( $type ) {
case "C128C" : case "C128C" :
@ -767,6 +768,10 @@ switch( $type ) {
break; break;
} }
} else {
$type = "";
$code = "";
}
// ***** Largeur par défaut // ***** Largeur par défaut
if( isset( $width ) && ( $width >= 10 ) ) { $hw = $width ; } if( isset( $width ) && ( $width >= 10 ) ) { $hw = $width ; }