mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Minor fixes, some cleanups, and standardising on echo("x") instead of echo "x"
git-svn-id: http://www.observium.org/svn/observer/trunk@1728 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
$old_mac = mysql_fetch_row(mysql_query("SELECT mac_address from ipv4_mac WHERE ipv4_address='$ip' AND interface_id = '".$interface['interface_id']."'"));
|
||||
if($clean_mac != $old_mac[0])
|
||||
{
|
||||
if ($debug) { echo "Changed mac address for $ip from $old_mac[0] to $clean_mac\n"; }
|
||||
if ($debug) { echo("Changed mac address for $ip from $old_mac[0] to $clean_mac\n"); }
|
||||
log_event("MAC change: $ip : " . mac_clean_to_readable($old_mac[0]) . " -> " . mac_clean_to_readable($clean_mac), $device, "interface", $interface['interface_id']);
|
||||
}
|
||||
mysql_query($sql);
|
||||
|
||||
Reference in New Issue
Block a user