From: jitendrapurohit Date: Thu, 27 Oct 2016 10:42:08 +0000 (+0530) Subject: Fix custom group page warnings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=318c4e1cea04dfea12b1df9c4082bd350b54de1b;p=civicrm-core.git Fix custom group page warnings --- 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);