Commit 0ba08578 authored by Franco Fichtner's avatar Franco Fichtner

dashboard: old widgets should not generate warnings

parent 49774525
......@@ -483,7 +483,7 @@ endif; ?>
$firstprint = true;
} else {
switch ($widget) {
case "interfaces.widget.php":
case "interface_list.widget.php":
case "traffic_graphs.widget.php":
$divdisplay = "block";
$display = "block";
......@@ -576,11 +576,12 @@ endif; ?>
} ?>
<?php
if ($divdisplay == "block") {
if (file_exists($directory . $widget)) {
if ($divdisplay == 'block') {
include($directory . $widget);
}
?>
<?php $widgetcounter++; ?>
$widgetcounter++;
} ?>
</div>
</div>
</section>
......
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