From 2978386af4287312b4764ae453b6b914395fc5bb Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 19 May 2011 08:50:26 +0000 Subject: [PATCH] add missing ( from query call, capitalise SQL keywords and put backticks around field names git-svn-id: http://www.observium.org/svn/observer/trunk@2348 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/services.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";