Fixed country show fields..

This commit is contained in:
Cüneyt Şentürk
2023-06-01 16:42:11 +03:00
parent 40b294480a
commit b7fda70b98
4 changed files with 5 additions and 5 deletions

View File

@ -278,7 +278,7 @@ class Contact extends Model
$location[] = $this->state;
}
if ($this->country && in_array($this->country, trans('countries'))) {
if ($this->country && array_key_exists($this->country, trans('countries'))) {
$location[] = trans('countries.' . $this->country);
}