Merge pull request #7407 from MrPetovan/bug/notices

Fix undefined property notice in L10n\L10n
This commit is contained in:
Philipp 2019-07-19 08:09:19 +02:00 committed by GitHub
commit 388ac062c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ class L10n
return;
}
if (!$this->langSave) {
if (empty($this->langSave)) {
$this->langSave = $this->lang;
$this->stringsSave = $this->strings;
}
@ -140,8 +140,8 @@ class L10n
$this->strings = $this->stringsSave;
$this->lang = $this->langSave;
unset($this->stringsSave);
unset($this->langSave);
$this->stringsSave = null;
$this->langSave = null;
}
/**