mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Corrected inserting ' into overide syslocation string
This commit is contained in:
@@ -5,7 +5,7 @@ if ($_POST['editing']) {
|
|||||||
|
|
||||||
$override_sysLocation_bool = mres($_POST['override_sysLocation']);
|
$override_sysLocation_bool = mres($_POST['override_sysLocation']);
|
||||||
if (isset($_POST['sysLocation'])) {
|
if (isset($_POST['sysLocation'])) {
|
||||||
$override_sysLocation_string = mres($_POST['sysLocation']);
|
$override_sysLocation_string = $_POST['sysLocation'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($device['override_sysLocation'] != $override_sysLocation_bool || $device['location'] != $override_sysLocation_string) {
|
if ($device['override_sysLocation'] != $override_sysLocation_bool || $device['location'] != $override_sysLocation_string) {
|
||||||
|
Reference in New Issue
Block a user