Skip to content

Commit

Permalink
fix for widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Jul 19, 2017
1 parent cf9d14d commit 41f5978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/actions/welcome.static.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
foreach($sitewidgets as $widget){
$newwidgets = array_merge($newwidgets, unserialize($widget));
}
$widgets = $newwidgets;
$widgets = (count($newwidgets) > 0) ? $newwidgets : $widgets;
}

usort($widgets, function ($a, $b) {
Expand Down

0 comments on commit 41f5978

Please sign in to comment.