From 1a902da02f7727d6719f772b49032c9041c943e2 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Wed, 11 Dec 2013 10:42:04 -0500 Subject: [PATCH] CRM-13954 processGreetings contact object query condition --- CRM/Contact/BAO/Contact.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index fb579c60f7..f0dce17514 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -2512,7 +2512,9 @@ AND civicrm_openid.is_primary = 1"; // fields that are required to calculate greeting and // also other fields used in tokens etc, // hence we need to retrieve it again. - $contact->find(TRUE); + if ( $contact->_query !== FALSE ) { + $contact->find(TRUE); + } // store object values to an array $contactDetails = array(); -- 2.25.1