From 6cc4992c9784b56d84f9c41e0854aefd818e110f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 2 Sep 2024 17:29:12 +0200 Subject: [PATCH] wait #7058 --- src/app/Traits/OtherEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5