really fix

git-svn-id: http://www.observium.org/svn/observer/trunk@2370 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-26 20:28:15 +00:00
parent 3b95c74add
commit becdd548cd

View File

@@ -22,11 +22,12 @@ if ($handle = opendir($config['install_dir'] . "/includes/polling/applications/"
if ($_POST['device'])
{
$updated = 0;
$param[] = array($device['device_id']);
$param[] = $device['device_id'];
foreach (array_keys($_POST) as $key)
{
if (substr($key,0,4) == 'app_')
{
echo($key);
$param[] = substr($key,4);
$enabled[] = substr($key,4);
$replace[] = "?";