Commit 7a6ce825 by Carsten Brandt

simplified method check in Component::__call()

parent afd04727
...@@ -199,7 +199,7 @@ class Component extends Object ...@@ -199,7 +199,7 @@ class Component extends Object
$this->ensureBehaviors(); $this->ensureBehaviors();
foreach ($this->_behaviors as $object) { foreach ($this->_behaviors as $object) {
if (method_exists($object, $name) || $object->hasMethod($name)) { if ($object->hasMethod($name)) {
return call_user_func_array(array($object, $name), $params); return call_user_func_array(array($object, $name), $params);
} }
} }
......
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