From dda947449af51ec972a35cd924a2aad18fdaf197 Mon Sep 17 00:00:00 2001 From: wiad Date: Tue, 19 Jan 2016 10:11:11 +0100 Subject: [PATCH] fix if statement style --- html/pages/device/showconfig.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'];