Commit 49384514 authored by Mark Huot's avatar Mark Huot

The __get() magic method runs three checks before giving up but the __isset()...

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.
parent 9daa919f
......@@ -650,6 +650,8 @@ abstract class Model {
{
if (array_key_exists($key, $this->$source)) return true;
}
if (method_exists($this, $key)) return true;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment