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 {
// get last selected languages
if ($selectedLanguageLeft === NULL) {
$selectedLanguageLeftFromSession = $this->session->getDataByKey('selectedLanguageLeft');
if ($selectedLanguageLeftFromSession=== NULL) {
$selectedLanguageLeft = $languages[0];
} else {
if ($selectedLanguageLeftFromSession !== NULL) {
$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