From f312b3bf0b9226683872fee77f0b22cbffbd3a44 Mon Sep 17 00:00:00 2001 From: Mitch Date: Thu, 19 Jun 2014 19:39:49 +1000 Subject: [PATCH] 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 73072e6f..2a5b9e5f 100644 --- a/idiorm.php +++ b/idiorm.php @@ -2081,7 +2081,7 @@ public function delete_many() { // --------------------- // public function offsetExists($key) { - return isset($this->_data[$key]); + return array_key_exists($key, $this->_data); } public function offsetGet($key) {