Commit 8c5991cb authored by Franco Fichtner's avatar Franco Fichtner

dashboard: old widgets should not generate warnings

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