diff --git a/html/pages/device/showconfig.inc.php b/html/pages/device/showconfig.inc.php index 410cc2f27..9e5d0b1a6 100644 --- a/html/pages/device/showconfig.inc.php +++ b/html/pages/device/showconfig.inc.php @@ -16,9 +16,11 @@ if ($_SESSION['userlevel'] >= '7') { if (is_file($configs.$device['hostname'])) { $file = $configs.$device['hostname']; - } elseif (is_file($configs.strtok($device['hostname'], '.'))) { // Strip domain + } + elseif (is_file($configs.strtok($device['hostname'], '.'))) { // Strip domain $file = $configs.strtok($device['hostname'], '.'); - } else { + } + else { if (!empty($config['mydomain'])) { // Try with domain name if set if (is_file($configs.$device['hostname'].'.'.$config['mydomain'])) { $file = $configs.$device['hostname'].'.'.$config['mydomain'];