Commit 2d8d3c12 authored by Franco Fichtner's avatar Franco Fichtner

widgets: don't display unavailable widgets, fixes #611

parent 9d46db1a
......@@ -134,6 +134,9 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") {
foreach ($widgetlist as $widget) {
$dashpos = strpos($widget, "-");
$widgetname = substr($widget, 0, $dashpos);
if (!in_array($widgetname, $widgetnames)) {
continue;
}
$colposition = strpos($widget, ":");
$displayposition = strrpos($widget, ":");
$colpos[] = substr($widget, $colposition+1, $displayposition - $colposition-1);
......
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