projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7325a6e
)
DataObjects/Core_person_signup.php
author
Edward
<edward@roojs.com>
Tue, 24 Feb 2015 08:45:37 +0000
(16:45 +0800)
committer
Edward
<edward@roojs.com>
Tue, 24 Feb 2015 08:45:37 +0000
(16:45 +0800)
DataObjects/Core_person_signup.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person_signup.php
b/DataObjects/Core_person_signup.php
index
fb58c66
..
417ea05
100644
(file)
--- a/
DataObjects/Core_person_signup.php
+++ b/
DataObjects/Core_person_signup.php
@@
-111,5
+111,13
@@
class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
return false;
}
+
+ function getEmailFrom()
+ {
+ if (empty($this->name)) {
+ return $this->email;
+ }
+ return '"' . addslashes($this->name) . '" <' . $this->email . '>';
+ }
}