mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
code standard/cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1978 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -25,7 +25,7 @@ if ($_POST['device'])
|
||||
$enabled[] = "'" . substr($key,4) . "'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$sql = "DELETE FROM applications WHERE device_id=" . $device['device_id'];
|
||||
if ($enabled)
|
||||
{
|
||||
@@ -33,7 +33,7 @@ if ($_POST['device'])
|
||||
}
|
||||
mysql_query($sql);
|
||||
$updated += mysql_affected_rows();
|
||||
|
||||
|
||||
$sql = "SELECT app_type FROM applications WHERE device_id=" . $device['device_id'];
|
||||
$result = mysql_query($sql);
|
||||
while ($row = mysql_fetch_assoc($result))
|
||||
|
||||
Reference in New Issue
Block a user