Merge pull request #17377 from artfulrobot/artfulrobot-remove-incorrect-calls-to...
[civicrm-core.git] / api / v3 / MembershipStatus.php
index 97421d09d9bf06259f6e3c32d640d7d7e43e5b5a..f49c269435f894e729b2aad37a95f5b9cab172d6 100644 (file)
@@ -72,7 +72,7 @@ function civicrm_api3_membership_status_update($params) {
 
   civicrm_api3_verify_mandatory($params, NULL, ['id']);
   //don't allow duplicate names.
-  $name = CRM_Utils_Array::value('name', $params);
+  $name = $params['name'] ?? NULL;
   if ($name) {
     $status = new CRM_Member_DAO_MembershipStatus();
     $status->name = $params['name'];