From 0c63d5ce4f88c8ca30ba99caabf02b33bed50564 Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Wed, 17 Jan 2024 18:02:01 +0100 Subject: [PATCH] fix condition problem --- htdocs/core/class/html.formmail.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 5e6a5bc5cc3..6e28ccd699c 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -889,7 +889,7 @@ class FormMail extends Form //input prompt AI require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; - if (isModEnabled('ai') && $apiKey = dolibarr_get_const($this->db, 'AI_CHATGPT_API_KEY', 0)) { + if (isModEnabled('ai') && dolibarr_get_const($this->db, 'AI_CHATGPT_API_KEY', 0)) { $out .= $this->getHtmlForInstruction(); } // Message