1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 19:33:07 +01:00
This commit is contained in:
Alessandro Corbelli 2018-12-18 12:40:30 +01:00
parent 77bcdd76c8
commit 284f0835da

View File

@ -456,7 +456,7 @@ class Customer extends Model
*/
public function getMainEmail()
{
return $this->emails()->first()->email;
return optional($this->emails()->first())->email;
}
/**