diff --git a/CRM/ConstituentsOnly/BAO/Query.php b/CRM/ConstituentsOnly/BAO/Query.php index b9e033a..003c604 100644 --- a/CRM/ConstituentsOnly/BAO/Query.php +++ b/CRM/ConstituentsOnly/BAO/Query.php @@ -18,6 +18,9 @@ class CRM_ConstituentsOnly_BAO_Query extends CRM_Contact_BAO_Query_Interface { * @access public */ public function where(&$query) { + if (empty($query->_paramLookup['entryURL'])) { + return; + } if (CRM_Utils_Array::value('civicrm_contact', $query->_tables)) { $query->_where[0][] = "( contact_a.do_not_trade IS NULL OR contact_a.do_not_trade = 0)"; }