From 69270a31b021d6464801cf9958fbbd368ba373a6 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 14 Feb 2025 10:00:01 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#2039 --- wire/core/DatabaseQuery.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wire/core/DatabaseQuery.php b/wire/core/DatabaseQuery.php index 3820b351..384b607c 100644 --- a/wire/core/DatabaseQuery.php +++ b/wire/core/DatabaseQuery.php @@ -465,7 +465,7 @@ abstract class DatabaseQuery extends WireData { if(is_array($value)) { $curValue = array_merge($curValue, $value); } else { - $curValue[] = trim($value, ", "); + $curValue[] = trim("$value", ", "); } $this->set($method, $curValue); @@ -756,4 +756,3 @@ abstract class DatabaseQuery extends WireData { } } -