silly bug

This commit is contained in:
Rosiak
2016-03-09 22:13:57 +01:00
parent 7c8806f784
commit 763f0fd24f

View File

@ -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');
}