Commit b758d83e authored by mattwire's avatar mattwire
Browse files

civigiftaid_financial_types_enabled setting is already an array

parent 5b1cbbda
......@@ -191,7 +191,7 @@ class CRM_Civigiftaid_SetContributionGiftAidEligibility {
* Whether eligible or not.
*/
private static function financialTypeIsEligible($financialType) {
$eligibleFinancialTypes = explode(',', CRM_Civigiftaid_Settings::getValue('financial_types_enabled'));
$eligibleFinancialTypes = \Civi::settings()->get('civigiftaid_financial_types_enabled');
return in_array($financialType, $eligibleFinancialTypes);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment