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

dashboard: old widgets should not generate warnings

parent 49774525
...@@ -483,7 +483,7 @@ endif; ?> ...@@ -483,7 +483,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";
...@@ -576,11 +576,12 @@ endif; ?> ...@@ -576,11 +576,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