refactor: MySQL strict and query fixes (#5338)

* refactor: MySQL strict and query fixes

* moved sql file
This commit is contained in:
Neil Lathwood
2017-01-13 12:47:16 +00:00
committed by Tony Murray
parent 3d0cf76e9b
commit d5296319fb
18 changed files with 70 additions and 43 deletions

View File

@@ -26,7 +26,7 @@ if ($_POST['editing']) {
#FIXME needs more sanity checking! and better feedback
$param = array('purpose' => $vars['descr'], 'type' => $vars['type'], 'ignore' => $vars['ignore'], 'disabled' => $vars['disabled']);
$param = array('purpose' => $vars['descr'], 'type' => $vars['type'], 'ignore' => set_numeric($vars['ignore']), 'disabled' => set_numeric($vars['disabled']));
$rows_updated = dbUpdate($param, 'devices', '`device_id` = ?', array($device['device_id']));