mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
mvc: tighten previous
This commit is contained in:
parent
a14da189f8
commit
2b0cb7bed3
@ -129,7 +129,7 @@ class InterfaceField extends BaseField
|
||||
$allInterfacesDevices = array(); // mapping device -> interface handle (lan/wan/optX)
|
||||
$configObj = Config::getInstance()->object();
|
||||
// Iterate over all interfaces configuration and collect data
|
||||
if ($configObj->interfaces->count() > 0) {
|
||||
if (isset($configObj->interfaces) && $configObj->interfaces->count() > 0) {
|
||||
foreach ($configObj->interfaces->children() as $key => $value) {
|
||||
$allInterfaces[$key] = $value;
|
||||
if (!empty($value->if)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user