X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FAdmin%2FForm%2FParticipantStatusType.php;h=168aa180c586a5650b937eac9454c2a6f92ed518;hb=6b409353d19be6058cbd47fcc5916c8564aed6ff;hp=c193d251d8c1dbfda08f2fee579aa4667c06b11c;hpb=d5fd88834139d3bd5be9a170e5689c50c42783e3;p=civicrm-core.git diff --git a/CRM/Admin/Form/ParticipantStatusType.php b/CRM/Admin/Form/ParticipantStatusType.php index c193d251d8..168aa180c5 100644 --- a/CRM/Admin/Form/ParticipantStatusType.php +++ b/CRM/Admin/Form/ParticipantStatusType.php @@ -86,13 +86,13 @@ class CRM_Admin_Form_ParticipantStatusType extends CRM_Admin_Form { $formValues = $this->controller->exportValues($this->_name); $params = [ - 'name' => CRM_Utils_Array::value('name', $formValues), - 'label' => CRM_Utils_Array::value('label', $formValues), - 'class' => CRM_Utils_Array::value('class', $formValues), + 'name' => $formValues['name'] ?? NULL, + 'label' => $formValues['label'] ?? NULL, + 'class' => $formValues['class'] ?? NULL, 'is_active' => CRM_Utils_Array::value('is_active', $formValues, FALSE), 'is_counted' => CRM_Utils_Array::value('is_counted', $formValues, FALSE), - 'weight' => CRM_Utils_Array::value('weight', $formValues), - 'visibility_id' => CRM_Utils_Array::value('visibility_id', $formValues), + 'weight' => $formValues['weight'] ?? NULL, + 'visibility_id' => $formValues['visibility_id'] ?? NULL, ]; // make sure a malicious POST does not change these on reserved statuses