diff options
author | deva <deva> | 2010-03-01 08:28:25 +0000 |
---|---|---|
committer | deva <deva> | 2010-03-01 08:28:25 +0000 |
commit | 3d3f8a1f0531f48a040831c32eb44e8e6b3acca8 (patch) | |
tree | a9949a74963a47b2384c14f185d5029c05837609 /utils/modules/newsletter.php | |
parent | 9e701aea428bb62f892ad9fa2fdafb93b5465d3a (diff) |
Ignore emtpy email field.
Diffstat (limited to 'utils/modules/newsletter.php')
-rw-r--r-- | utils/modules/newsletter.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/modules/newsletter.php b/utils/modules/newsletter.php index 3881794..58de120 100644 --- a/utils/modules/newsletter.php +++ b/utils/modules/newsletter.php @@ -60,7 +60,8 @@ class Mailinglist extends _Mailinglist { public function subscribe($emailaddr) { $str = ""; - if($emailaddr == "your@email.here") return ""; + // TODO: Make more elaborate check if input as an email address. + if($emailaddr == "your@email.here" || $emailaddr == "") return ""; $email = new EMail($emailaddr, time()); if($this->add($email)) { $this->write(); |