projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb45d1
)
Defines forlifeEmailAlternate function.
author
Stéphane Jacob
<sj@m4x.org>
Sun, 6 Mar 2011 14:25:03 +0000
(15:25 +0100)
committer
Sté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
patch
|
blob
|
blame
|
history
diff --git
a/classes/pluser.php
b/classes/pluser.php
index
5765655
..
c350dfa
100644
(file)
--- a/
classes/pluser.php
+++ b/
classes/pluser.php
@@
-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()
{