summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2014-06-20 17:01:12 +0100
committerSimon Holywell <[email protected]>2014-06-20 17:01:12 +0100
commit019b01a74efe254c39f9106905ccc1eefe294910 (patch)
treea22446c543ca2370bc165fb34a294255e3475c86 /idiorm.php
parentffb4ef2d090223215687819763e335ebc319d716 (diff)
parentf312b3bf0b9226683872fee77f0b22cbffbd3a44 (diff)
Merge pull request #214 from cainmi/issue-181
offsetExists() should return true for null values, resolves #181
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index a251ed7..584b152 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -2091,7 +2091,7 @@
// --------------------- //
public function offsetExists($key) {
- return isset($this->_data[$key]);
+ return array_key_exists($key, $this->_data);
}
public function offsetGet($key) {