From: Vincent Vanwaelscappel Date: Mon, 2 Sep 2024 15:29:12 +0000 (+0200) Subject: wait #7058 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6cc4992c9784b56d84f9c41e0854aefd818e110f;p=cubedesigners_userdatabase.git wait #7058 --- diff --git a/src/app/Traits/OtherEmails.php b/src/app/Traits/OtherEmails.php index f026925..698d8f2 100644 --- a/src/app/Traits/OtherEmails.php +++ b/src/app/Traits/OtherEmails.php @@ -9,7 +9,7 @@ trait OtherEmails public function getEmails() { $res = []; - if (property_exists($this, 'email')) { + if ($this->hasField('email')) { $res[] = trim(mb_strtolower($this->email)); } if (!$this->emails_other) {