From 5581986c6dd54bb958b0b1d3a0fadadea6f628a4 Mon Sep 17 00:00:00 2001 From: Josef Aichhorn Date: Fri, 17 Jul 2020 15:52:16 +0200 Subject: [PATCH] Fixed undefined index notices --- src/Controller/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/AdminController.php b/src/Controller/AdminController.php index 25e1498..9d0eba4 100644 --- a/src/Controller/AdminController.php +++ b/src/Controller/AdminController.php @@ -185,9 +185,9 @@ public function diffAction(Request $request) $languages = []; foreach ($items as $item) { - $language = $item['lang']; + $language = $item['lang'] ?? null; if ($language) { - if (!$languages[$language]) { + if (!isset($languages[$language])) { $locale = \Locale::getDisplayLanguage($language); $languages[$language] = [