summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-03-01 08:28:25 +0000
committerdeva <deva>2010-03-01 08:28:25 +0000
commit3d3f8a1f0531f48a040831c32eb44e8e6b3acca8 (patch)
treea9949a74963a47b2384c14f185d5029c05837609
parent9e701aea428bb62f892ad9fa2fdafb93b5465d3a (diff)
Ignore emtpy email field.
-rw-r--r--utils/modules/newsletter.php3
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();