From ac9301dc8f6b352a8ae4ad0effcefc3a74cbc674 Mon Sep 17 00:00:00 2001 From: MDW Date: Sun, 5 Jan 2025 16:58:53 +0100 Subject: [PATCH] Qual: Handle case where code to convert is --- htdocs/core/modules/barcode/doc/phpbarcode.modules.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php index b066f2a460c..56e846a0516 100644 --- a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php +++ b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php @@ -1,7 +1,7 @@ * Copyright (C) 2005 Regis Houssin - * Copyright (C) 2024 MDW + * Copyright (C) 2024-2025 MDW * * 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 @@ -159,6 +159,7 @@ class modPhpbarcode extends ModeleBarCode $filebarcode = ''; } + $result = "No barcode ($code) to print"; dol_syslog(get_class($this)."::buildBarCode $code,$encoding,$scale,$mode,$filebarcode"); if ($code) { $result = barcode_print($code, $encoding, $scale, $mode, $filebarcode);