--- autoresponder-5.x-1.0.module	Thu Jul 03 18:33:15 2008
+++ autoresponder.module	Tue Sep 30 17:23:13 2008
@@ -1222,6 +1222,7 @@
           $auid = db_next_id('{autoresponder_users}');
           db_query("INSERT INTO {autoresponder_users} (id, email, reg_date) VALUES (%d, '%s', %d)", $auid, strtolower($edit['mail']), time());
         }
+        if (count($edit['set'])) {
         foreach ($edit['set'] as $key => $value) {
           if ($value) {
             $aid = db_next_id('{autoresponder}');
@@ -1233,6 +1234,7 @@
               $u->setid = $value;
               autoresponder_mail($u, $mail);
               drupal_set_message(t('Your email address %email is added to our mailing list! Please check your email.', array('%email' => $edit['mail'])));
+              }
             }
           }
         }
