From a97c642d3bf57f39b9781b38f45d18ea095885ca Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 23 Dec 2022 11:29:50 +0200 Subject: [PATCH] fix --- application/Espo/Tools/App/LanguageService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/Espo/Tools/App/LanguageService.php b/application/Espo/Tools/App/LanguageService.php index aba919045f..f130f1b613 100644 --- a/application/Espo/Tools/App/LanguageService.php +++ b/application/Espo/Tools/App/LanguageService.php @@ -177,15 +177,15 @@ class LanguageService */ private function unsetEmpty(array &$data, string $scope): void { - if ($data[$scope]['options'] === []) { + if (($data[$scope]['options'] ?? null) === []) { unset($data[$scope]['options']); } - if ($data[$scope]['fields'] === []) { + if (($data[$scope]['fields'] ?? null) === []) { unset($data[$scope]['fields']); } - if ($data[$scope]['links'] === []) { + if (($data[$scope]['links'] ?? null) === []) { unset($data[$scope]['links']); } }