mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added missing array() around NOW
This commit is contained in:
@@ -16,7 +16,7 @@ if(!is_numeric($_POST['device_id'])) {
|
||||
$status = "error";
|
||||
$message = "Invalid device id";
|
||||
} else {
|
||||
$update = dbUpdate(array('last_discovered' => 'NULL'), 'devices', '`device_id` = ?', array($_POST['device_id']));
|
||||
$update = dbUpdate(array('last_discovered' => array('NULL')), 'devices', '`device_id` = ?', array($_POST['device_id']));
|
||||
if(!empty($update) || $update == '0') {
|
||||
$status = "ok";
|
||||
$message = "Device will be rediscovered";
|
||||
|
||||
Reference in New Issue
Block a user