code standard/cleanups

git-svn-id: http://www.observium.org/svn/observer/trunk@1978 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-26 19:12:24 +00:00
parent ec7535c25a
commit 7454791074
19 changed files with 239 additions and 229 deletions
+2 -2
View File
@@ -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))