From 183278f99fd795898a9752cc2477b457e22b0790 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 2 Oct 2014 21:05:41 +0100 Subject: [PATCH] Added missing array() around NOW --- html/forms/rediscover-device.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/forms/rediscover-device.inc.php b/html/forms/rediscover-device.inc.php index 711560caf..419fc65a7 100644 --- a/html/forms/rediscover-device.inc.php +++ b/html/forms/rediscover-device.inc.php @@ -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";