processwire-issues
processwire-issues copied to clipboard
DatabaseQuery error with Tracy user switcher
See https://processwire.com/talk/topic/31018-request-info-panel-problem/ for description of problem.
In certain circumstances, such as those described in the post, the error:
ErrorException: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wire/core/DatabaseQuery.php:468
occurs.
This can be simply fixed by changing line 468 to
$curValue[] = $value ? trim($value, ", ") : '';
Thanks @MetaTunes I've pushed a fix for this.
@MetaTunes, can we close this issue?