diff --git a/includes/functions.php b/includes/functions.php index a1540a48a..b9da4a670 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -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)) === false) { + if (dbFetchRow('SELECT * FROM state_indexes WHERE state_name = ?', array($state_name)) !== true) { $insert = array('state_name' => $state_name); return dbInsert($insert, 'state_indexes'); }