From 7a6ce8251a37f52f04f88174661f21a6643cd9de Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Sun, 1 Sep 2013 14:40:15 +0200 Subject: [PATCH] simplified method check in Component::__call() --- framework/yii/base/Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/base/Component.php b/framework/yii/base/Component.php index f57280d..b5467a7 100644 --- a/framework/yii/base/Component.php +++ b/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); } }