From 318c4e1cea04dfea12b1df9c4082bd350b54de1b Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 27 Oct 2016 16:12:08 +0530 Subject: [PATCH] Fix custom group page warnings --- CRM/Contact/BAO/Relationship.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index 07d719a3d5..c23c4ce774 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -551,9 +551,7 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { } } - if (empty($contactSubType)) { - $contactSubType = array(); - } + $contactSubType = (array) $contactSubType; if ($contactId) { $contactType = CRM_Contact_BAO_Contact::getContactType($contactId); $contactSubType = CRM_Contact_BAO_Contact::getContactSubType($contactId); -- 2.25.1