|
|
@@ -586,8 +586,11 @@ class Member extends Component
|
|
|
|
|
|
public function checkIsItaly()
|
|
|
{
|
|
|
- $n = \App\Models\Nation::findOrFail($this->nation_id);
|
|
|
- $this->isItaly = $n->is_italy;
|
|
|
+ if ($this->nation_id > 0) {
|
|
|
+ $n = \App\Models\Nation::findOrFail($this->nation_id);
|
|
|
+ $this->isItaly = $n->is_italy;
|
|
|
+ } else
|
|
|
+ $this->isItaly = false;
|
|
|
}
|
|
|
|
|
|
public function checkIsBirthItaly()
|