From b09f709adc78d7912125106b5c54616cd768f506 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 30 Dec 2013 09:32:51 -0500 Subject: [PATCH] Fixed build break. --- framework/yii/base/Module.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/yii/base/Module.php b/framework/yii/base/Module.php index 126791b..83dbb4c 100644 --- a/framework/yii/base/Module.php +++ b/framework/yii/base/Module.php @@ -540,7 +540,8 @@ abstract class Module extends Component public function setComponents($components) { foreach ($components as $id => $component) { - if (isset($this->_components[$id]['class']) && !isset($component['class'])) { + if (!is_object($component) && isset($this->_components[$id]['class']) && !isset($component['class'])) { + // set default component class $component['class'] = $this->_components[$id]['class']; } $this->_components[$id] = $component;