From 6a62b45b2a6bc5657d3794f9d2da14cd4af069ca Mon Sep 17 00:00:00 2001 From: Francois-Gomis Date: Wed, 31 Jul 2024 23:42:23 +0200 Subject: [PATCH] fix: add check ps_version --- alma/controllers/hook/ActionObjectUpdateAfter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alma/controllers/hook/ActionObjectUpdateAfter.php b/alma/controllers/hook/ActionObjectUpdateAfter.php index 6f154801..a6f98216 100644 --- a/alma/controllers/hook/ActionObjectUpdateAfter.php +++ b/alma/controllers/hook/ActionObjectUpdateAfter.php @@ -10,6 +10,9 @@ use Alma\PrestaShop\Helpers\ConstantsHelper; use Alma\PrestaShop\Logger; +if (!defined('_PS_VERSION_')) { + exit; +} class ActionObjectUpdateAfter { /**