if (!isset(Civi::$statics[__CLASS__]['countryLimit'])) {
$countryIsoCodes = CRM_Core_PseudoConstant::countryIsoCode();
$country = [];
- $countryLimit = Civi::settings()->get('countryLimit');
+ $countryLimit = Civi::settings()->get('countryLimit') ?? [];
if (is_array($countryLimit)) {
foreach ($countryLimit as $val) {
// CRM-12007