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);