From 4928eedca6d719f3c80f61dcca5e61ef43ad17af Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 10 Jun 2010 22:40:27 +0000 Subject: [PATCH] only show graphs tab if there is a graph definition file git-svn-id: http://www.observium.org/svn/observer/trunk@1143 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/pages/device.php b/html/pages/device.php index e5551400d..a86e98dbb 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -33,11 +33,15 @@ echo(" "); } -echo('
  • +if ((is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) || + ($os_group && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php"))) +{ + echo('
  • Graphs
  • '); +} $health = mysql_result(mysql_query("select count(*) from storage WHERE device_id = '" . $device['device_id'] . "'"), 0) + mysql_result(mysql_query("select count(temp_id) from temperature WHERE device_id = '" . $device['device_id'] . "'"), 0) +