Skip to content

Commit

Permalink
MAE-975: Fix settings page error
Browse files Browse the repository at this point in the history
The eventextras settings page was returning CiviCRM WSOD because it is mandatory in PHP8 for the first parameter in array_fill_key to be an array.
  • Loading branch information
olayiwola-compucorp committed Dec 2, 2022
1 parent 1cb93f5 commit ee10989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/EventsExtras/Form/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ public function setDefaultValues() {
}

$defaults['eventsextras_payment_processor_selection_default'] =
array_fill_keys($defaults['eventsextras_payment_processor_selection_default'], '1');
is_array($defaults['eventsextras_payment_processor_selection_default']) ?
array_fill_keys($defaults['eventsextras_payment_processor_selection_default'], '1') : NULL;

return $defaults;
}
Expand Down

0 comments on commit ee10989

Please sign in to comment.