Skip to content

Instantly share code, notes, and snippets.

@@ -673,3 +673,1 @@ class CRM_Contact_BAO_Query {
- if (!empty($this->_paramLookup[$name]) || !empty($this->_returnProperties[$name]) ||
- $makeException
- ) {
+ if (!empty($this->_returnProperties[$name]) || $makeException) {
diff --git a/civicrm/custom/php/CRM/Contact/BAO/Query.php b/civicrm/custom/php/CRM/Contact/BAO/Query.php
index febdbe6..020b6fa 100644
--- a/civicrm/custom/php/CRM/Contact/BAO/Query.php
+++ b/civicrm/custom/php/CRM/Contact/BAO/Query.php
@@ -426,12 +426,13 @@ class CRM_Contact_BAO_Query {
$this->_params = array();
}
- if (empty($returnProperties)) {
+ if (is_null($returnProperties)) {