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

@ -471,7 +471,7 @@ class Document extends Model
$location[] = $this->contact_state;
}
if ($this->contact_country && in_array($this->contact_country, trans('countries'))) {
if ($this->contact_country && array_key_exists($this->contact_country, trans('countries'))) {
$location[] = trans('countries.' . $this->contact_country);
}