mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
dashboard: old widgets should not generate warnings
This commit is contained in:
parent
4977452594
commit
0ba08578e8
@ -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") {
|
||||
include($directory . $widget);
|
||||
}
|
||||
?>
|
||||
<?php $widgetcounter++; ?>
|
||||
if (file_exists($directory . $widget)) {
|
||||
if ($divdisplay == 'block') {
|
||||
include($directory . $widget);
|
||||
}
|
||||
$widgetcounter++;
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user