Skip to content

Commit

Permalink
[Installer] Bug fix with undefined l GET param
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Apr 26, 2021
1 parent b751cfc commit da4b823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _install/controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function index()
$sLangSelect = '';

foreach ($aLangs as $sLang) {
$sSelectedAttr = (empty($_REQUEST['l']) && $sLang === $this->sCurrentLang || $sLang === $_REQUEST['l']) ? '" selected="selected' : '';
$sSelectedAttr = (empty($_REQUEST['l']) && $sLang === $this->sCurrentLang || !empty($_REQUEST['l']) && $sLang === $_REQUEST['l']) ? '" selected="selected' : '';
$sLangSelect .= '<option value="?l=' . $sLang . $sSelectedAttr . '">' . $aLangsList[$sLang] . '</option>';
}

Expand Down

0 comments on commit da4b823

Please sign in to comment.