From f312b3bf0b9226683872fee77f0b22cbffbd3a44 Mon Sep 17 00:00:00 2001 From: Mitch Date: Thu, 19 Jun 2014 19:39:49 +1000 Subject: offsetExists() should return true for null values, resolves #181 --- idiorm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idiorm.php b/idiorm.php index 73072e6..2a5b9e5 100644 --- a/idiorm.php +++ b/idiorm.php @@ -2081,7 +2081,7 @@ // --------------------- // public function offsetExists($key) { - return isset($this->_data[$key]); + return array_key_exists($key, $this->_data); } public function offsetGet($key) { -- cgit v1.2.3