MDL-70459 core_payment: use array_merge to merge currencies

This commit is contained in:
Shamim Rezaie
2020-12-16 22:30:40 +11:00
parent d328ef1c9d
commit abe543bfa7
+1 -1
View File
@@ -49,7 +49,7 @@ class helper {
/** @var \paygw_paypal\gateway $classname */
$classname = '\paygw_' . $plugin . '\gateway';
$currencies += component_class_callback($classname, 'get_supported_currencies', [], []);
$currencies = array_merge($currencies, component_class_callback($classname, 'get_supported_currencies', [], []));
}
$currencies = array_unique($currencies);