mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-04 16:12:20 +02:00
fix if statement style
This commit is contained in:
@@ -16,9 +16,11 @@ if ($_SESSION['userlevel'] >= '7') {
|
|||||||
|
|
||||||
if (is_file($configs.$device['hostname'])) {
|
if (is_file($configs.$device['hostname'])) {
|
||||||
$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'], '.');
|
$file = $configs.strtok($device['hostname'], '.');
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
if (!empty($config['mydomain'])) { // Try with domain name if set
|
if (!empty($config['mydomain'])) { // Try with domain name if set
|
||||||
if (is_file($configs.$device['hostname'].'.'.$config['mydomain'])) {
|
if (is_file($configs.$device['hostname'].'.'.$config['mydomain'])) {
|
||||||
$file = $configs.$device['hostname'].'.'.$config['mydomain'];
|
$file = $configs.$device['hostname'].'.'.$config['mydomain'];
|
||||||
|
|||||||
Reference in New Issue
Block a user