mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Fix invalid widget info shown in server environment page
This commit is contained in:
parent
f3494e8a11
commit
82de42dfc8
1 changed files with 6 additions and 5 deletions
|
|
@ -58,10 +58,9 @@ class WidgetModel extends Widget
|
|||
$widget = $searched_list[$i];
|
||||
// Wanted information on the Widget
|
||||
$widget_info = self::getWidgetInfo($widget);
|
||||
|
||||
if(!$widget_info)
|
||||
if (!$widget_info)
|
||||
{
|
||||
$widget_info = new stdClass();
|
||||
continue;
|
||||
}
|
||||
|
||||
// get easyinstall remove url
|
||||
|
|
@ -101,8 +100,10 @@ class WidgetModel extends Widget
|
|||
$widgetStyle = $searched_list[$i];
|
||||
// Wanted information on the Widget
|
||||
$widgetStyle_info = self::getWidgetStyleInfo($widgetStyle);
|
||||
|
||||
$list[] = $widgetStyle_info;
|
||||
if ($widgetStyle_info)
|
||||
{
|
||||
$list[] = $widgetStyle_info;
|
||||
}
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue