mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Updated sql statements
This commit is contained in:
@@ -20,4 +20,6 @@ if ($_POST['state'] == 'true') {
|
|||||||
$state = 0;
|
$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