projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8e81b
)
Try not to return empty email if you can find one
author
Pascal Corpet
<pascal.corpet@m4x.org>
Sun, 13 Jun 2010 20:57:41 +0000
(22:57 +0200)
committer
Pascal Corpet
<pascal.corpet@m4x.org>
Sun, 13 Jun 2010 20:57:41 +0000
(22:57 +0200)
classes/pluser.php
patch
|
blob
|
blame
|
history
diff --git
a/classes/pluser.php
b/classes/pluser.php
index
c4ae622
..
339a527
100644
(file)
--- a/
classes/pluser.php
+++ b/
classes/pluser.php
@@
-135,11
+135,17
@@
abstract class PlUser
public function bestEmail()
{
- return $this->bestalias;
+ if (!empty($this->bestalias)) {
+ return $this->bestalias;
+ }
+ return $this->email;
}
public function forlifeEmail()
{
- return $this->forlife;
+ if (!empty($this->forlife)) {
+ return $this->forlife;
+ }
+ return $this->email;
}
public function displayName()