Commit a20b5876 authored by Franco Fichtner's avatar Franco Fichtner

src: fix style errors

parent a1b6d04c
......@@ -49,18 +49,17 @@ class SettingsController extends ApiControllerBase
$mdlProxy = new Proxy();
// Define array for selected interfaces
$selopt=Array();
$selopt = array();
// Get ConfigObject
$configObj = Config::getInstance()->object();
// Iterate over all interfaces configuration
// TODO: replace for <interfaces> helper
foreach ( $configObj->interfaces->children() as $key => $value ) {
foreach ($configObj->interfaces->children() as $key => $value) {
// Check if interface is enabled, if tag is <enable/> treat as enabled.
if ( isset($value->enable) && ( $value->enable != '0' ) ) {
if (isset($value->enable) && $value->enable != '0') {
// Check if interface has static ip
if ($value->ipaddr != 'dhcp') {
if ($value->descr == '') {
$description = strtoupper($key); // Use interface name as description if none is given
} else {
......
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