warnings cleanup

git-svn-id: http://www.observium.org/svn/observer/trunk@996 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-03-06 01:26:33 +00:00
parent 9c73844eb8
commit d9ceca0dc1

View File

@@ -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 &amp; 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);