Skip to content

DatabaseQuery error with Tracy user switcher #2039

@MetaTunes

Description

@MetaTunes

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, ", ") : '';

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions