Skip to content

Commit

Permalink
Fixed undefined index notices
Browse files Browse the repository at this point in the history
  • Loading branch information
weisswurstkanone authored Jul 17, 2020
1 parent 98a4171 commit 5581986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [
Expand Down

0 comments on commit 5581986

Please sign in to comment.