update code towards php8 compliance

This commit is contained in:
Philippe GRAND 2022-10-03 10:20:39 +02:00
parent 97c20aa1c8
commit 6dea9332d1

View File

@ -217,8 +217,8 @@ class pdf_cyan extends ModelePDFPropales
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products", "propal"));
// Show Draft Watermark
if ($object->statut == $object::STATUS_DRAFT && (!empty($conf->global->PROPALE_DRAFT_WATERMARK))) {
$this->watermark = $conf->global->PROPALE_DRAFT_WATERMARK;
if ($object->statut == $object::STATUS_DRAFT && getDolGlobalString('PROPALE_DRAFT_WATERMARK')) {
$this->watermark = getDolGlobalString('PROPALE_DRAFT_WATERMARK');
}
global $outputlangsbis;