Skip to content

Commit

Permalink
Add __isset magic method. Fixes https://github.com/bobthecow/mustache…
Browse files Browse the repository at this point in the history
  • Loading branch information
j4mie committed Nov 15, 2010
1 parent 3dad80a commit 6b04cf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions idiorm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1013,5 +1013,9 @@ public function __get($key) {
public function __set($key, $value) {
$this->set($key, $value);
}

public function __isset($key) {
return isset($this->_data[$key]);
}
}

0 comments on commit 6b04cf1

Please sign in to comment.