From 001e5af572ca90f6222a1e9c2abc03de8e42f75f Mon Sep 17 00:00:00 2001 From: aynsix Date: Wed, 22 Apr 2020 16:58:23 +0300 Subject: [PATCH] revert : remove trim --- lib/classes/User/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/User/Query.php b/lib/classes/User/Query.php index 78eac57c07..e0ec9edfa5 100644 --- a/lib/classes/User/Query.php +++ b/lib/classes/User/Query.php @@ -1040,7 +1040,7 @@ class User_Query $constraints[':' . $fieldName . $n ++] = $field; } - $sql = ' AND (TRIM(' . $fieldName . ') ' . $operator . ' ' . implode(' OR TRIM(' . $fieldName . ') ' . $operator . ' ' , array_keys($constraints)) . ') '; + $sql = ' AND (' . $fieldName . ' ' . $operator . ' ' . implode(' OR ' . $fieldName . ' ' . $operator . ' ' , array_keys($constraints)) . ') '; $this->sql_params = array_merge($this->sql_params, $constraints);