From f2bb8b964c5aaf831c7c6510d44e499bfb063fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 5 Oct 2022 18:17:33 +0200 Subject: [PATCH] param null login --- core/module/user/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 0a372525..9e97c5c9 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -499,7 +499,7 @@ class user extends common ? \PHP81_BC\strftime('%d/%m/%y', time()) . ';' . \PHP81_BC\strftime('%R', time()) . ';' : utf8_encode(\PHP81_BC\strftime('%d/%m/%y', time())) . ';' . utf8_encode(\PHP81_BC\strftime('%R', time())) . ';'; $dataLog .= helper::getIp($this->getData(['config', 'connect', 'anonymousIp'])) . ';'; - $dataLog .= $this->getInput('userLoginId', helper::FILTER_ID) . ';'; + $dataLog .= empty($this->getInput('userLoginId')) ? ';' : $this->getInput('userLoginId', helper::FILTER_ID) . ';'; $dataLog .= $this->getUrl() . ';'; $dataLog .= $logStatus; $dataLog .= PHP_EOL;