diff --git a/htdocs/includes/modules/barcode/phpbarcode.modules.php b/htdocs/includes/modules/barcode/phpbarcode.modules.php index 881e7c181c2..9cb3c8772f8 100644 --- a/htdocs/includes/modules/barcode/phpbarcode.modules.php +++ b/htdocs/includes/modules/barcode/phpbarcode.modules.php @@ -68,6 +68,7 @@ class modPhpbarcode extends ModeleBarCode $supported=0; if ($encoding == 'EAN8') $supported=1; if ($encoding == 'EAN13') $supported=1; + if ($encoding == 'UPC') $supported=1; if ($encoding == 'ISBN') $supported=1; if ($encoding == 'C39') $supported=1; if ($encoding == 'C128') $supported=1; diff --git a/htdocs/viewimage.php b/htdocs/viewimage.php index 3dcbcaf35e3..e6e417eb64c 100644 --- a/htdocs/viewimage.php +++ b/htdocs/viewimage.php @@ -1,6 +1,7 @@ * Copyright (C) 2005-2008 Laurent Destailleur + * Copyright (C) 2005-2008 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -306,7 +307,7 @@ if ($modulepart == 'barcode') $generator=$_GET["generator"]; $code=$_GET["code"]; $encoding=$_GET["encoding"]; - $readable=$_GET["readable"]; + $readable=$_GET["readable"]?$_GET["readable"]:"Y"; // Chargement de la classe de codage require_once($dir.$generator.".modules.php");