From 763f0fd24fe5735133436687e753fbc8ab70b3da Mon Sep 17 00:00:00 2001 From: Rosiak Date: Wed, 9 Mar 2016 22:13:57 +0100 Subject: [PATCH] silly bug --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index cc53abdb7..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)) == 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'); }