]> _ Git - cubedesigners_userdatabase.git/commitdiff
wait #7058
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Sep 2024 15:29:12 +0000 (17:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Sep 2024 15:29:12 +0000 (17:29 +0200)
src/app/Traits/OtherEmails.php

index f0269255a2dececb44d59acf1147c18cb945e6b5..698d8f228ba21eec8992a339a7307f424649a1eb 100644 (file)
@@ -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) {