Skip to content

Commit

Permalink
Merge pull request #28 from compucorp/MAE-975-fix-settings-page
Browse files Browse the repository at this point in the history
MAE-975: Fix settings page error
  • Loading branch information
omarabuhussein authored Jan 19, 2023
2 parents 1cb93f5 + ee10989 commit baecbeb
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 baecbeb

Please sign in to comment.