Commit 179be14c by Carsten Brandt

revert incorrect change in #5617

parent a9fb207a
......@@ -51,6 +51,9 @@ class AssetPanel extends Panel
public function save()
{
$bundles = Yii::$app->view->assetManager->bundles;
if (empty($bundles)) { // bundles can be false
return [];
}
$data = [];
foreach ($bundles as $name => $bundle) {
if ($bundle instanceof AssetBundle) {
......
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