diff --git a/application/Espo/Core/Portal/Application.php b/application/Espo/Core/Portal/Application.php index 6019953cc2..5c3498c98e 100644 --- a/application/Espo/Core/Portal/Application.php +++ b/application/Espo/Core/Portal/Application.php @@ -50,9 +50,9 @@ class Application extends \Espo\Core\Application $portal = $this->getContainer()->get('entityManager')->getEntity('Portal', $portalId); if (!$portal) { - $portal = $this->getContainer()->get('entityManager')->getRepository('Portal')->where(array( + $portal = $this->getContainer()->get('entityManager')->getRepository('Portal')->where([ 'customId' => $portalId - ))->findOne(); + ])->findOne(); } if (!$portal) {