mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This commit is contained in:
committed by
Tony Murray
parent
a984c67f98
commit
f0fefcfe4f
@@ -40,8 +40,7 @@ if ($_POST['editing']) {
|
||||
} else {
|
||||
$update_message = "Device record update error.";
|
||||
}
|
||||
|
||||
if ($_POST['hostname'] !== '' && $_POST['hostname'] !== $device['hostname']) {
|
||||
if (isset($_POST['hostname']) && $_POST['hostname'] !== '' && $_POST['hostname'] !== $device['hostname']) {
|
||||
if (is_admin()) {
|
||||
$result = renamehost($device['device_id'], $_POST['hostname'], 'webui');
|
||||
if ($result == "") {
|
||||
|
Reference in New Issue
Block a user