The __get() magic method runs three checks before giving up but the __isset() method only runs two checks. This syncs the logic to ensure that __get() and __isset() are looking at the same possibilities.

This commit is contained in:
Mark Huot
2012-04-13 10:20:34 -03:00
parent 9daa919f4b
commit 49384514ef

View File

@@ -650,6 +650,8 @@ abstract class Model {
{
if (array_key_exists($key, $this->$source)) return true;
}
if (method_exists($this, $key)) return true;
}
/**