diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 4a9921cd9..538ca56e5 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -59,7 +59,7 @@ function generate_device_url($device, $vars=array())
return generate_url(array('page' => 'device', 'device' => $device['device_id']), $vars);
}
-function generate_device_link($device, $text=0, $vars=array(), $start=0, $end=0)
+function generate_device_link($device, $text=NULL, $vars=array(), $start=0, $end=0)
{
global $config;
@@ -92,10 +92,10 @@ function generate_device_link($device, $text=0, $vars=array(), $start=0, $end=0)
if ($device['os']) { $contents .= mres($config['os'][$device['os']]['text']); }
if ($device['version']) { $contents .= " ".mres($device['version']); }
if ($device['features']) { $contents .= " (".mres($device['features']).")"; }
-# if ($device['hardware']) { $contents .= " - ".$device['hardware']; }
+ if ($device['hardware']) { $contents .= " - ".$device['hardware']; }
+ if (isset($device['location'])) { $contents .= "
" . htmlentities($device['location']); }
$contents .= "";
-# if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."
"; }
foreach ($graphs as $entry)
{
$graph = $entry['graph'];
diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php
index db918ef7e..72476970b 100644
--- a/html/includes/print-menubar.php
+++ b/html/includes/print-menubar.php
@@ -442,7 +442,7 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf
{ ## FIXME link below broken!
echo('
Alerted BGP (' . $bgp_alerts . ')
Alerted BGP (' . $bgp_alerts . ')