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) +