Commit c852ba45 by Alexander Makarov

Merge pull request #5617 from pana1990/patch-1

refactoring code
parents 8c50ee9e 8c8b7a77
...@@ -51,9 +51,6 @@ class AssetPanel extends Panel ...@@ -51,9 +51,6 @@ class AssetPanel extends Panel
public function save() public function save()
{ {
$bundles = Yii::$app->view->assetManager->bundles; $bundles = Yii::$app->view->assetManager->bundles;
if (empty($bundles)) {
return [];
}
$data = []; $data = [];
foreach ($bundles as $name => $bundle) { foreach ($bundles as $name => $bundle) {
if ($bundle instanceof AssetBundle) { 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