mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
- BUGFIX: getidbyname() did not pass parameters to MySQL correctly.
- Restructured sysContact and sysLocation "not set" code. - Do not display "SNMP Location" when empty or unset. git-svn-id: http://www.observium.org/svn/observer/trunk@2299 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -75,6 +75,16 @@
|
||||
$poll_device['sysLocation'] = str_replace("\"","", $poll_device['sysLocation']);
|
||||
$poll_device['sysContact'] = str_replace("\"","", $poll_device['sysContact']);
|
||||
|
||||
if ($poll_device['sysLocation'] == "not set")
|
||||
{
|
||||
$poll_device['sysLocation'] = "";
|
||||
}
|
||||
|
||||
if ($poll_device['sysContact'] == "not set")
|
||||
{
|
||||
$poll_device['sysContact'] = "";
|
||||
}
|
||||
|
||||
if ($poll_device['sysContact'] && $poll_device['sysContact'] != $device['sysContact'])
|
||||
{
|
||||
$update_array['sysContact'] = $poll_device['sysContact'];
|
||||
|
||||
Reference in New Issue
Block a user