From 3d3f8a1f0531f48a040831c32eb44e8e6b3acca8 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 1 Mar 2010 08:28:25 +0000 Subject: Ignore emtpy email field. --- utils/modules/newsletter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/modules/newsletter.php') 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(); -- cgit v1.2.3