+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$membershipStatusBAO->save();
}
$membershipStatus = array();
- _civicrm_api3_object_to_array(clone($membershipStatusBAO), $membershipStatus);
+ $cloneBAO = clone($membershipStatusBAO);
+ _civicrm_api3_object_to_array($cloneBAO, $membershipStatus);
$membershipStatus['is_error'] = 0;
return $membershipStatus;
}
* This API is used for deleting a membership status
*
* @param array $params
- *
* @return array
+ * @throws API_Exception
+ * @throws CRM_Core_Exception
*/
function civicrm_api3_membership_status_delete($params) {