mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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];
|
$widget = $searched_list[$i];
|
||||||
// Wanted information on the Widget
|
// Wanted information on the Widget
|
||||||
$widget_info = self::getWidgetInfo($widget);
|
$widget_info = self::getWidgetInfo($widget);
|
||||||
|
if (!$widget_info)
|
||||||
if(!$widget_info)
|
|
||||||
{
|
{
|
||||||
$widget_info = new stdClass();
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get easyinstall remove url
|
// get easyinstall remove url
|
||||||
|
|
@ -101,8 +100,10 @@ class WidgetModel extends Widget
|
||||||
$widgetStyle = $searched_list[$i];
|
$widgetStyle = $searched_list[$i];
|
||||||
// Wanted information on the Widget
|
// Wanted information on the Widget
|
||||||
$widgetStyle_info = self::getWidgetStyleInfo($widgetStyle);
|
$widgetStyle_info = self::getWidgetStyleInfo($widgetStyle);
|
||||||
|
if ($widgetStyle_info)
|
||||||
$list[] = $widgetStyle_info;
|
{
|
||||||
|
$list[] = $widgetStyle_info;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue