mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-24 19:33:07 +01:00
Fix #192
This commit is contained in:
parent
77bcdd76c8
commit
284f0835da
@ -456,7 +456,7 @@ class Customer extends Model
|
||||
*/
|
||||
public function getMainEmail()
|
||||
{
|
||||
return $this->emails()->first()->email;
|
||||
return optional($this->emails()->first())->email;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user