Stop double escaping the notes post variable

This commit is contained in:
Robert Gornall
2016-03-03 18:38:24 +00:00
parent 72214b0faf
commit c321d4e4b2
+1 -1
View File
@@ -14,7 +14,7 @@ $status = 'error';
$message = 'unknown error';
$device_id = mres($_POST['device_id']);
$notes = mres($_POST['notes']);
$notes = $_POST['notes'];
if (isset($notes) && (dbUpdate(array('notes' => $notes), 'devices', 'device_id = ?', array($device_id)))) {
$status = 'ok';