From 8b9a675f9649f5f9702cf9645cee1a5dd5d2a0b1 Mon Sep 17 00:00:00 2001 From: Yoan Mollard Date: Sun, 24 Dec 2023 11:40:16 +0100 Subject: [PATCH] (int) getDolGlobalString() -> getDolGlobalInt() --- htdocs/takepos/invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 48b481770ac65..74774a41617ad 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -151,8 +151,8 @@ function fail($message) } // Assign a default project, if relevant -if (isModEnabled('project') && !empty(getDolGlobalString("CASHDESK_ID_PROJECT".$takeposterminal))) { - $invoice->fk_project = (int) getDolGlobalString("CASHDESK_ID_PROJECT".$takeposterminal); +if (isModEnabled('project') && getDolGlobalInt("CASHDESK_ID_PROJECT".$takeposterminal)) { + $invoice->fk_project = getDolGlobalInt("CASHDESK_ID_PROJECT".$takeposterminal); } // Change the currency of invoice if it was modified