Fix: pas de message d'erreur si le code n'est pas renseigné
This commit is contained in:
parent
ab666cbe15
commit
77646e79e7
@ -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 ; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user