From 2768a1f4b952e61891c28f1a04a60afcefe7d895 Mon Sep 17 00:00:00 2001 From: Brice Werry Date: Wed, 25 Oct 2023 11:12:23 +0200 Subject: [PATCH] PHP 8.2 Warning correction --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 5fc059b..0f61029 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ ****************************************************/ //CHECK ACCESS // Protection if external user -if ($user->societe_id > 0 || !$user->rights->ecommerceng->read) +if ((isset($user->societe_id) && $user->societe_id > 0) || empty($user->rights->ecommerceng->read)) { accessforbidden(); }