mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-13 00:16:21 +02: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