diff --git a/Civi/Api4/Query/Api4SelectQuery.php b/Civi/Api4/Query/Api4SelectQuery.php index 191ef0f46b32eb1d10d91a15c54c162c7287c9b0..ff1590c32e7eacd57b25f783804fdf60339121d3 100644 --- a/Civi/Api4/Query/Api4SelectQuery.php +++ b/Civi/Api4/Query/Api4SelectQuery.php @@ -1030,7 +1030,7 @@ class Api4SelectQuery { $joinPath = $joiner->getPath($explicitJoin['table'] ?? $this->getFrom(), $pathArray); } catch (\API_Exception $e) { - if ($explicitJoin['bridge']) { + if (!empty($explicitJoin['bridge'])) { // Try looking up custom field in bridge entity instead try { $useBridgeTable = TRUE;