enotice fix
authoreileen <eileen@fuzion.co.nz>
Wed, 14 Aug 2013 06:12:15 +0000 (18:12 +1200)
committereileen <eileen@fuzion.co.nz>
Sun, 18 Aug 2013 04:49:40 +0000 (16:49 +1200)
CRM/Contact/BAO/Relationship.php

index eba647383886b5dcf9278e34268a4d0359377685..d2d839c1821c0d07875979f1df812268f91c066d 100644 (file)
@@ -1558,7 +1558,7 @@ cc.sort_name LIKE '%$name%'";
       return;
     }
     else {
-      $relationshipDirections = $membershipType['relationship_direction'];
+      $relationshipDirections = (array) $membershipType['relationship_direction'];
       // if we have contact_id_a OR contact_id_b we can make a call here
       // if we have contact??
       foreach ($relationshipDirections as $index => $mtdirection) {