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
This commit is contained in:
FTBZ
2017-02-15 23:22:31 +00:00
committed by Neil Lathwood
co-authored by Neil Lathwood
parent cbaab1462f
commit e017f7a71b
+1 -1
View File
@@ -278,7 +278,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) {
</li>';
}
if (dbFetchCell("SELECT COUNT(service_id) FROM services WHERE device_id = '".$device['device_id']."'") > '0') {
if ($config['show_services']) {
echo '<li class="'.$select['services'].'">
<a href="'.generate_device_url($device, array('tab' => 'services')).'">
<i class="fa fa-cogs fa-lg icon-theme" aria-hidden="true"></i> Services