Commit 77ea4e48 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Refactoring some code, exception handling

parent 0a2f68e1
...@@ -107,10 +107,10 @@ class MailController extends ActionController { ...@@ -107,10 +107,10 @@ class MailController extends ActionController {
// get last selected languages // get last selected languages
if ($selectedLanguageLeft === NULL) { if ($selectedLanguageLeft === NULL) {
$selectedLanguageLeftFromSession = $this->session->getDataByKey('selectedLanguageLeft'); $selectedLanguageLeftFromSession = $this->session->getDataByKey('selectedLanguageLeft');
if ($selectedLanguageLeftFromSession=== NULL) { if ($selectedLanguageLeftFromSession !== NULL) {
$selectedLanguageLeft = $languages[0];
} else {
$selectedLanguageLeft = $selectedLanguageLeftFromSession; $selectedLanguageLeft = $selectedLanguageLeftFromSession;
} else {
$selectedLanguageLeft = $languages[0];
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment