mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Qual: Handle case where code to convert is <false>
This commit is contained in:
parent
7847da3c11
commit
ac9301dc8f
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/* Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* 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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user