From 257878be20500530a2a419993c05bbb490f4f369 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 30 Nov 2023 12:14:34 +1300 Subject: [PATCH] Suppress notice --- CRM/Contact/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 16447b2a1f..84dc6eed97 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -3226,7 +3226,7 @@ WHERE $smartGroupClause $etTable = "`civicrm_entity_tag-" . uniqid() . "`"; $tTable = "`civicrm_tag-" . uniqid() . "`"; - if ($useAllTagTypes[2]) { + if ($useAllTagTypes && $useAllTagTypes[2]) { $this->_tables[$etTable] = $this->_whereTables[$etTable] = " LEFT JOIN civicrm_entity_tag {$etTable} ON ( {$etTable}.entity_id = contact_a.id) LEFT JOIN civicrm_tag {$tTable} ON ( {$etTable}.tag_id = {$tTable}.id )"; -- 2.25.1