From 585ab61dcea9be7ab5d7731fb6c5093befd02f26 Mon Sep 17 00:00:00 2001 From: kiwicommerce Date: Thu, 1 Aug 2024 13:21:51 +0530 Subject: [PATCH] Minor Bug Fixes --- Model/Processor.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Model/Processor.php b/Model/Processor.php index f47be1a..87967ed 100644 --- a/Model/Processor.php +++ b/Model/Processor.php @@ -444,10 +444,8 @@ public function _initLog() $activity->setRemoteIp($this->remoteAddress->getRemoteAddress()); $activity->setForwardedIp($this->httpRequest->getServer('HTTP_X_FORWARDED_FOR')); $activity->setUserAgent($this->handler->header->getHttpUserAgent()); - if($this->eventConfig != null) { - $activity->setModule($this->helper->getActivityModuleName($this->eventConfig['module'])); - $activity->setActionType($this->eventConfig['action']); - } + $activity->setModule($this->helper->getActivityModuleName($this->eventConfig['module'] ?? null)); + $activity->setActionType($this->eventConfig['action'] ?? null); $activity->setFullaction($this->escapeString($this->lastAction, '/')); $activity->setStoreId(0);