Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from nodes-php/feature/prevent-config-errors
Browse files Browse the repository at this point in the history
Prevent errors caused by old configuration
  • Loading branch information
rasmusebbesen authored Feb 12, 2021
2 parents 3f27285 + f4d1adf commit bd80ccd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Login/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function __construct(array $settings, $mode = null)
// Subtract settings for mode
$settings = $this->settings['login'][$key];

// prevent update errors
if (!isset($settings['language'])) {
$settings['language'] = 'da';
}

// Init variables
$this->baseUrl = $settings['baseUrl'];
$this->uiMode = $settings['uiMode'];
Expand Down

0 comments on commit bd80ccd

Please sign in to comment.