From 1ca927cc816b21e779ebc0e9e5e2dd3bd275debd Mon Sep 17 00:00:00 2001 From: monishdeb Date: Mon, 13 Jul 2015 15:41:59 +0530 Subject: [PATCH] QA changes --- CRM/Contact/BAO/Contact.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 70c2dae2c2..c32b27d9a5 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -2569,13 +2569,11 @@ AND civicrm_openid.is_primary = 1"; case 'rel': $result = CRM_Contact_BAO_Relationship::getRelationship($contactId, - CRM_Contact_BAO_Relationship::CURRENT, - 0, 1 + CRM_Contact_BAO_Relationship::CURRENT ); - return $result; + return count($result); case 'group': - return CRM_Contact_BAO_GroupContact::getContactGroup($contactId, "Added", NULL, TRUE); case 'log': -- 2.25.1