- civicrm_api3_verify_one_mandatory($params, NULL, array('address', 'address_id', 'phone', 'phone_id', 'im', 'im_id', 'email', 'email_id'));
- // Call the appropriate api to create entities if any are passed in the params
+ $any_mandatory = array(
+ 'address',
+ 'address_id',
+ 'phone',
+ 'phone_id',
+ 'im',
+ 'im_id',
+ 'email',
+ 'email_id',
+ );
+ civicrm_api3_verify_one_mandatory($params, NULL, $any_mandatory);
+ // Call the appropriate api to create entities if any are passed in the params.