mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Updated sql statements
This commit is contained in:
parent
7a302c2763
commit
cb2b782824
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user