From fae051deb4eeef7f6ac729c355a3fd577ef2e93c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Feb 2023 15:14:18 +0100 Subject: [PATCH] Fix warning --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 3d4a094c30b..deba6883277 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -3411,8 +3411,8 @@ if (!function_exists("llxFooter")) { } // Wrapper to add log when clicking on download or preview - if (isModEnabled('blockedlog') && is_object($object) && !empty($object->id) && $object->id > 0 && $object->statut > 0) { - if (in_array($object->element, array('facture'))) { // Restrict for the moment to element 'facture' + if (isModEnabled('blockedlog') && is_object($object) && !empty($object->id) && $object->id > 0) { + if (in_array($object->element, array('facture')) && $object->statut > 0) { // Restrict for the moment to element 'facture' print "\n\n"; ?>