Browse Source

Fixed build break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
b09f709adc
  1. 3
      framework/yii/base/Module.php

3
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;

Loading…
Cancel
Save