mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
silly bug
This commit is contained in:
@ -1447,7 +1447,7 @@ function rrdtest($path, &$stdOutput, &$stdError) {
|
||||
}
|
||||
|
||||
function create_state_index($state_name) {
|
||||
if (dbFetchRow('SELECT * FROM state_indexes WHERE state_name = ?', array($state_name)) == null) {
|
||||
if (dbFetchRow('SELECT * FROM state_indexes WHERE state_name = ?', array($state_name)) !== true) {
|
||||
$insert = array('state_name' => $state_name);
|
||||
return dbInsert($insert, 'state_indexes');
|
||||
}
|
||||
|
Reference in New Issue
Block a user