diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php index 5479c8c87..3c1f9345b 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php @@ -1,7 +1,7 @@ object(); - if ($config->interfaces != null) { + if ($config->interfaces->count() > 0) { foreach ($config->interfaces->children() as $key => $node) { $intfmap[(string)$key] = array("descr" => !empty((string)$node->descr) ? (string)$node->descr : $key); }