X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMembershipStatus.php;h=59d2ce8501482c13a14746b817cb6e4f7ffd417c;hb=1839cd10f5523577879c1a329f3f2438af0463e3;hp=696de0ad4a331d422a6b8350c147fad090c2de88;hpb=0cd94b76b205744cef83f85a285dee541f5e1b9d;p=civicrm-core.git diff --git a/api/v3/MembershipStatus.php b/api/v3/MembershipStatus.php index 696de0ad4a..59d2ce8501 100644 --- a/api/v3/MembershipStatus.php +++ b/api/v3/MembershipStatus.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -109,7 +109,8 @@ function civicrm_api3_membership_status_update($params) { $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; } @@ -120,8 +121,9 @@ function civicrm_api3_membership_status_update($params) { * 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) {