mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Merge branch 'master' of github.com:laf/librenms into issue-laf-110-new
Conflicts: includes/defaults.inc.php
This commit is contained in:
@@ -27,7 +27,7 @@ $invert = mres($_POST['invert']);
|
||||
$name = mres($_POST['name']);
|
||||
|
||||
if(empty($rule)) {
|
||||
$update_message = "ERROR: No rule was generated";
|
||||
$update_message = "ERROR: No rule was generated - did you forget to click and / or?";
|
||||
} elseif(validate_device_id($_POST['device_id']) || $_POST['device_id'] == '-1' || $_POST['device_id'][0] == ':') {
|
||||
$device_id = $_POST['device_id'];
|
||||
if(!is_numeric($count)) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user