fix if statement style

This commit is contained in:
wiad
2016-01-19 10:11:11 +01:00
parent 582c3984e5
commit dda947449a

View File

@@ -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'];