Fix custom group page warnings
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 27 Oct 2016 10:42:08 +0000 (16:12 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 27 Oct 2016 10:45:50 +0000 (16:15 +0530)
CRM/Contact/BAO/Relationship.php

index 07d719a3d56a509ed2fd7ec2fa1b7bae9a12cf59..c23c4ce7748424a96e28f11f2b4b7d7e1ae6248a 100644 (file)
@@ -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);