From aec2cd0b1331ddfefeece598cdd6f6c0a235f041 Mon Sep 17 00:00:00 2001 From: oscarotero Date: Wed, 16 Dec 2015 12:02:35 +0100 Subject: [PATCH] fixed isset with nullValues --- src/Row.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Row.php b/src/Row.php index 58fbd7a..dcf79a8 100644 --- a/src/Row.php +++ b/src/Row.php @@ -61,7 +61,7 @@ public function __set($name, $value) } /** - * Magic method to check if a property is defined or is empty. + * Magic method to check if a property is defined or not * * @param string $name Property name * @@ -69,7 +69,7 @@ public function __set($name, $value) */ public function __isset($name) { - return !empty($this->values[$name]) && !($this->values[$name] instanceof NullValue); + return isset($this->values[$name]) && !($this->values[$name] instanceof NullValue); } /** @@ -166,7 +166,7 @@ public function get($name = null) */ public function has($name) { - return array_key_exists($name, $this->values); + return array_key_exists($name, $this->values) && !($this->values[$name] instanceof NullValue); } /**