From bbb98d81ee60ee5f66861e01eed09a883b2f2175 Mon Sep 17 00:00:00 2001 From: Jerome Quere Date: Thu, 19 Nov 2015 20:23:23 +0100 Subject: [PATCH] When getItem is call on a nested var return null even if the value is 0 or empty array --- src/Configula/Config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Configula/Config.php b/src/Configula/Config.php index 64ac688..49bcb32 100644 --- a/src/Configula/Config.php +++ b/src/Configula/Config.php @@ -178,7 +178,8 @@ public function getItem($item, $defaultValue = null) } elseif (strpos($item, '.') !== FALSE) { $cs = $this->configSettings; - if ($val = $this->getNestedVar($cs, $item)) { + $val = $this->getNestedVar($cs, $item); + if ($val !== null) { return $val; }