Merge pull request #3149 from khobbits/patch-notes

Stop double escaping the notes post variable.
This commit is contained in:
Neil Lathwood
2016-03-03 19:46:42 +00:00
+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';