diff --git a/html/pages/device/services.inc.php b/html/pages/device/services.inc.php index fc73a653c..54ba556c1 100644 --- a/html/pages/device/services.inc.php +++ b/html/pages/device/services.inc.php @@ -25,7 +25,7 @@ unset($sep); print_optionbar_end(); -if (dbFetchCell"select count(service_id) from services WHERE device_id = ?", array($device['device_id'])) > '0') +if (dbFetchCell("SELECT COUNT(service_id) FROM `services` WHERE device_id = ?", array($device['device_id'])) > '0') { echo("
"); $i = "1";