close #2561 Fixed: Countries prefix flaw
This commit is contained in:
@ -463,7 +463,7 @@ class Document extends Model
|
||||
$location[] = $this->contact_state;
|
||||
}
|
||||
|
||||
if ($this->contact_country) {
|
||||
if ($this->contact_country && in_array($this->contact_country, trans('countries'))) {
|
||||
$location[] = trans('countries.' . $this->contact_country);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user