From e017f7a71b40918909bcc513c491b3ddc2fbc7af Mon Sep 17 00:00:00 2001 From: FTBZ Date: Thu, 16 Feb 2017 00:22:31 +0100 Subject: [PATCH] webui: Always show the Services menu if global show_service is enabled (#5906) * Always show the Services menu if global show_service is enabled * Add global service check if statement --- html/pages/device.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index f19cb873b1..132bd73946 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -278,7 +278,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) { '; } - if (dbFetchCell("SELECT COUNT(service_id) FROM services WHERE device_id = '".$device['device_id']."'") > '0') { + if ($config['show_services']) { echo '
  • Services