From 5e888260d8df353a81b1d64d3b17117ba77c8f5d Mon Sep 17 00:00:00 2001 From: Oleksii Strutsynskyi Date: Tue, 14 May 2013 17:12:21 +0000 Subject: [PATCH] Fixed issue with getting Object component --- yii/base/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yii/base/Module.php b/yii/base/Module.php index b1597e2..f2e67a9 100644 --- a/yii/base/Module.php +++ b/yii/base/Module.php @@ -449,7 +449,7 @@ abstract class Module extends Component public function getComponent($id, $load = true) { if (isset($this->_components[$id])) { - if ($this->_components[$id] instanceof Component) { + if ($this->_components[$id] instanceof Object) { return $this->_components[$id]; } elseif ($load) { Yii::trace("Loading component: $id", __METHOD__);