diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php index fac4b259edd..5bc01fafe64 100644 --- a/htdocs/admin/barcode.php +++ b/htdocs/admin/barcode.php @@ -282,6 +282,7 @@ if (getDolGlobalString('BARCODE_USE_ON_PRODUCT') && isModEnabled('product')) { dol_include_once($dirroot.$file.'.php'); } catch (Exception $e) { dol_syslog($e->getMessage(), LOG_ERR); + continue; } $modBarCode = new $file(); @@ -349,6 +350,7 @@ if (getDolGlobalString('BARCODE_USE_ON_THIRDPARTY') && isModEnabled('societe')) dol_include_once($dirroot.$file.'.php'); } catch (Exception $e) { dol_syslog($e->getMessage(), LOG_ERR); + continue; } $modBarCode = new $file(); diff --git a/htdocs/barcode/printsheet.php b/htdocs/barcode/printsheet.php index 554d2fd61e6..b84fb80ea97 100644 --- a/htdocs/barcode/printsheet.php +++ b/htdocs/barcode/printsheet.php @@ -301,6 +301,7 @@ if (empty($reshook)) { $result = doc_label_pdf_create($db, $arrayofrecords, $modellabel, $outputlangs, (string) $diroutput, (string) $template, dol_sanitizeFileName($outfile)); } catch (Exception $e) { $mesg = $langs->trans('ErrorGeneratingBarcode'); + $error++; } $conf->global->TCPDF_THROW_ERRORS_INSTEAD_OF_DIE = $previousConf;