From f5e07be04e6871554b4fb453fde2022fd303a904 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 18 Jul 2019 21:21:16 -0400 Subject: [PATCH] Fix undefined property notice in L10n\L10n --- src/Core/L10n/L10n.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/L10n/L10n.php b/src/Core/L10n/L10n.php index e1a8659472..a7bbed9af7 100644 --- a/src/Core/L10n/L10n.php +++ b/src/Core/L10n/L10n.php @@ -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; } /**