]> git.mxchange.org Git - friendica.git/commitdiff
Fix undefined property notice in L10n\L10n
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 19 Jul 2019 01:21:16 +0000 (21:21 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 19 Jul 2019 01:21:16 +0000 (21:21 -0400)
src/Core/L10n/L10n.php

index e1a86594720841cca23dc1420e8264b1a2b34665..a7bbed9af738ceec5fe77392e1b4df59cb8c68a0 100644 (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;
        }
 
        /**