Commit b09f709a by Qiang Xue

Fixed build break.

parent bf73fe80
...@@ -540,7 +540,8 @@ abstract class Module extends Component ...@@ -540,7 +540,8 @@ abstract class Module extends Component
public function setComponents($components) public function setComponents($components)
{ {
foreach ($components as $id => $component) { 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']; $component['class'] = $this->_components[$id]['class'];
} }
$this->_components[$id] = $component; $this->_components[$id] = $component;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment