Browse Source

simplified method check in Component::__call()

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
7a6ce8251a
  1. 2
      framework/yii/base/Component.php

2
framework/yii/base/Component.php

@ -199,7 +199,7 @@ class Component extends Object
$this->ensureBehaviors();
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);
}
}

Loading…
Cancel
Save