Commit db7e4a44 by Alexander Makarov

Added echo output in case there's return

parent 4023f421
...@@ -93,13 +93,7 @@ class Widget extends Component implements ViewContextInterface ...@@ -93,13 +93,7 @@ class Widget extends Component implements ViewContextInterface
/** @var Widget $widget */ /** @var Widget $widget */
$config['class'] = get_called_class(); $config['class'] = get_called_class();
$widget = Yii::createObject($config); $widget = Yii::createObject($config);
$out = $widget->run(); return ob_get_clean() . $widget->run();
if (empty($out)) {
return ob_get_clean();
} else {
ob_clean();
return $out;
}
} }
private $_id; private $_id;
......
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