From 77646e79e736681ca48dc923bd203208f470e826 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Sep 2007 11:55:30 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20pas=20de=20message=20d'erreur=20si=20le?= =?UTF-8?q?=20code=20n'est=20pas=20renseign=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/barcode/pi_barcode/pi_barcode.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/includes/barcode/pi_barcode/pi_barcode.php b/htdocs/includes/barcode/pi_barcode/pi_barcode.php index cd27a688a39..bbee64aa4a1 100644 --- a/htdocs/includes/barcode/pi_barcode/pi_barcode.php +++ b/htdocs/includes/barcode/pi_barcode/pi_barcode.php @@ -568,6 +568,7 @@ class pi_barcode } extract($_GET); $type = strtoupper($type); +if ($code){ switch( $type ) { case "C128C" : @@ -767,6 +768,10 @@ switch( $type ) { break; } +} else { + $type = ""; + $code = ""; + } // ***** Largeur par défaut if( isset( $width ) && ( $width >= 10 ) ) { $hw = $width ; }