Added a clear custom button to allow poller to re-pick up limits

This commit is contained in:
laf
2015-05-20 19:40:02 +01:00
parent c9492ac4cc
commit 05634a4e38
2 changed files with 33 additions and 2 deletions
+5
View File
@@ -14,6 +14,10 @@
// FUA
if (isset($_POST['sub_type']) && !empty($_POST['sub_type'])) {
dbUpdate(array('sensor_custom' => 'No'), 'sensors', '`sensor_id` = ?', array($_POST['sensor_id']));
} else {
if(!is_numeric($_POST['device_id']) || !is_numeric($_POST['sensor_id']))
{
echo('error with data');
@@ -45,4 +49,5 @@ else
exit;
}
}
}