Skip to content
Snippets Groups Projects
Commit c0ca1949 authored by Rich Lott / Artful Robot's avatar Rich Lott / Artful Robot
Browse files

getEntitySpecificJoins sometimes returns NULL, triggering deprecation warning for trim() in php 8.1

Discovered this in the wild where an api3 Contact.getcount call for a particular smartgroup
was causing this. The smartgroup otherwise works fine.

Looking at the code, it's clear that getEntitySpecificJoins is supposed to return a string,
but in the case of civicrm_activity_contact it was returning from another function which may
return NULL. I have coalesced NULL to empty string.
parent fb38a5e4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment