Defines forlifeEmailAlternate function.
authorStéphane Jacob <sj@m4x.org>
Sun, 6 Mar 2011 14:25:03 +0000 (15:25 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 6 Mar 2011 14:25:03 +0000 (15:25 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/pluser.php

index 5765655..c350dfa 100644 (file)
@@ -171,6 +171,13 @@ abstract class PlUser implements PlUserInterface
         }
         return $this->email;
     }
+    public function forlifeEmailAlternate()
+    {
+        if (!empty($this->forlife_alternate)) {
+            return $this->forlife_alternate;
+        }
+        return $this->email;
+    }
 
     public function displayName()
     {