Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.2.2
-
Component/s: CiviCRM API
-
Labels:None
Description
Test case TestOfMembershipGetAPIV2 throws an exception that $relationships is assumed to be set, but has not been initialised.
This patch adds a check to see if the variable $relationships has been set before trying to iterate it.