From d57aa46eb52fbd36152442dd03a6734f3362f258 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Wed, 21 Feb 2018 19:47:57 +0000 Subject: [PATCH] remove explode() --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index bc2aa1a9..ad2f7bfb 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1847,7 +1847,7 @@ function db_where_clause($condition, $struct, $additional_raw_where = '', $searc die('db_where_cond: parameter $struct is not an array!'); } - $allowed_operators = explode(' ', '< > >= <= = != <> CONT LIKE NULL NOTNULL'); + $allowed_operators = array('<', '>', '>=', '<=', '=', '!=', '<>', 'CONT', 'LIKE', 'NULL', 'NOTNULL'); $where_parts = array(); $having_parts = array();