mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: MySQL strict and query fixes (#5338)
* refactor: MySQL strict and query fixes * moved sql file
This commit is contained in:
committed by
Tony Murray
parent
3d0cf76e9b
commit
d5296319fb
@@ -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']));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user