From 53606cbde5fa3fabb1e2a9df98991ce612db5e94 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 21 Sep 2020 17:40:56 +0300 Subject: [PATCH] cs fix --- application/Espo/Core/ApplicationUser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/Espo/Core/ApplicationUser.php b/application/Espo/Core/ApplicationUser.php index 053b5bf19d..88aff1695c 100644 --- a/application/Espo/Core/ApplicationUser.php +++ b/application/Espo/Core/ApplicationUser.php @@ -61,8 +61,9 @@ class ApplicationUser public function setupSystemUser() { $user = $this->entityManagerProxy->getEntity('User', 'system'); + if (!$user) { - throw new Error("System user is not found"); + throw new Error("System user is not found."); } $user->set('ipAddress', $_SERVER['REMOTE_ADDR'] ?? null);