mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated sql statements
This commit is contained in:
@ -20,4 +20,6 @@ if ($_POST['state'] == 'true') {
|
||||
$state = 0;
|
||||
}
|
||||
|
||||
dbUpdate(array('value' => $state), 'callback', '`name` = "enabled"', array());
|
||||
if( dbUpdate(array('value' => $state), 'callback', '`name` = "enabled"', array()) == 0) {
|
||||
dbInsert(array('value' => $state,'name' => 'enabled'), 'callback');
|
||||
}
|
||||
|
Reference in New Issue
Block a user