From d9ceca0dc1fb035190221370264f32e9b078713e Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 6 Mar 2010 01:26:33 +0000 Subject: [PATCH] warnings cleanup git-svn-id: http://www.observium.org/svn/observer/trunk@996 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index ba489d3b12..8f10955a9c 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -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 = "
".$device['hostname']." - CPU & Memory Usage
"; - if ($device['location']) { $contents .= "" . htmlentities($device['location']."
"); } + if (isset($device['location'])) { $contents .= "" . htmlentities($device['location']."
"); } $contents .= "