Skip to content

Commit

Permalink
Merge pull request #214 from cainmi/issue-181
Browse files Browse the repository at this point in the history
offsetExists() should return true for null values, resolves #181
  • Loading branch information
treffynnon committed Jun 20, 2014
2 parents ffb4ef2 + f312b3b commit 019b01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idiorm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,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) {
Expand Down

0 comments on commit 019b01a

Please sign in to comment.