From 280e5f560dc6fea92910aaaf9b38716284afaea8 Mon Sep 17 00:00:00 2001 From: Youchen Lee Date: Thu, 4 May 2017 01:10:27 +0800 Subject: [PATCH] Fix #3, thanks @TemaSM and @AEK-BKF --- src/Setting/Setting.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Setting/Setting.php b/src/Setting/Setting.php index 8062744..3e2a927 100644 --- a/src/Setting/Setting.php +++ b/src/Setting/Setting.php @@ -34,6 +34,9 @@ public function get($key, $default_value = null) } } $this->resetLang(); + if (is_null($setting)) { + $setting = $default_value; + } return $setting; }