diff options
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(); |