summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/widgets/widgets/interface_statistics.widget.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/widgets/widgets/interface_statistics.widget.php b/src/usr/local/www/widgets/widgets/interface_statistics.widget.php
index d56b10f..8685f6c 100644
--- a/src/usr/local/www/widgets/widgets/interface_statistics.widget.php
+++ b/src/usr/local/www/widgets/widgets/interface_statistics.widget.php
@@ -79,6 +79,9 @@ if ($_REQUEST && $_REQUEST['ajax']) {
);
$ifdescrs = get_configured_interface_with_descr();
+ if (!is_array($ifdescrs)) {
+ $ifdescrs = array();
+ }
$skipinterfaces = explode(",", $user_settings['widgets']['interface_statistics']['iffilter']);
print("<thead>");
@@ -124,6 +127,9 @@ if ($_REQUEST && $_REQUEST['ajax']) {
} else if ($_POST) {
$ifdescrs = get_configured_interface_with_descr();
+ if (!is_array($ifdescrs)) {
+ $ifdescrs = array();
+ }
$validNames = array();
foreach ($ifdescrs as $ifdescr => $ifname) {
OpenPOWER on IntegriCloud