mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
warnings cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@996 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -264,7 +264,7 @@ function geteventicon ($message)
|
||||
if ($message == "Interface went up" || $message == "Interface changed state to Up" ) { $icon = "if-connect.png"; }
|
||||
if ($message == "Interface disabled") { $icon = "if-disable.png"; }
|
||||
if ($message == "Interface enabled") { $icon = "if-enable.png"; }
|
||||
if ($icon) { return $icon; } else { return false; }
|
||||
if (isset($icon)) { return $icon; } else { return false; }
|
||||
}
|
||||
|
||||
function generateiflink($interface, $text=0, $type = NULL)
|
||||
@@ -307,7 +307,7 @@ function generatedevicelink($device, $text=0, $start=0, $end=0)
|
||||
|
||||
$url = $config['base_url']."/device/" . $device['device_id'] . "/";
|
||||
$contents = "<div class=list-large>".$device['hostname']." - CPU & Memory Usage</div>";
|
||||
if ($device['location']) { $contents .= "" . htmlentities($device['location']."<br />"); }
|
||||
if (isset($device['location'])) { $contents .= "" . htmlentities($device['location']."<br />"); }
|
||||
$contents .= "<img src=\'$graph_url\'><br /><img src=\'$graph_url_b\'";
|
||||
$text = htmlentities($text);
|
||||
$link = overlib_link($url, $text, $contents, $class);
|
||||
|
||||
Reference in New Issue
Block a user