mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
@@ -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("<div style='margin: 5px;'><table cellpadding=7 border=0 cellspacing=0 width=100%>");
|
||||
$i = "1";
|
||||
|
Reference in New Issue
Block a user