From 975ffda14cb195995144de3a8fc020966dc28ec7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 1 Apr 2014 13:17:50 +1300 Subject: [PATCH] CRM-14399 this is probably safer & less like to wind up @colemanw than the prev version on this line --- CRM/Member/BAO/MembershipStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/BAO/MembershipStatus.php b/CRM/Member/BAO/MembershipStatus.php index 430269605c..f0586282ea 100644 --- a/CRM/Member/BAO/MembershipStatus.php +++ b/CRM/Member/BAO/MembershipStatus.php @@ -139,7 +139,7 @@ class CRM_Member_BAO_MembershipStatus extends CRM_Member_DAO_MembershipStatus { } //for add mode, copy label to name. - $statusId = CRM_Utils_Array::value('id', $params, CRM_Utils_Array::value('membershipStatus', $ids)); + $statusId = !empty($params['id']) ? $params['id'] : CRM_Utils_Array::value('membershipStatus', $ids); if (!$statusId && !empty($params['label']) && empty($params['name'])) { $params['name'] = $params['label']; } -- 2.25.1