Merge pull request #4667 from eileenmcnaughton/whitespace
[civicrm-core.git] / CRM / Mailing / Form / Unsubscribe.php
index 0896b7897de9cc3308398f9c10338141d5588c20..b164f22ee56dfef25fa425b31fff6a04c4681f48 100644 (file)
@@ -70,12 +70,18 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form {
         $groupExist = TRUE;
       }
     }
+    if (!$groupExist) {
+      $statusMsg = ts('Email: %1 has been successfully unsubscribed from this Mailing List/Group.',
+        array(1 => $email)
+      );
+      CRM_Core_Session::setStatus( $statusMsg, '', 'fail' );
+    }
     $this->assign('groupExist', $groupExist);
 
   }
 
   function buildQuickForm() {
-
+    CRM_Utils_System::addHTMLHead('<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">');
     CRM_Utils_System::setTitle(ts('Please Confirm Your Unsubscribe from this Mailing/Group'));
 
     $this->add('text', 'email_confirm', ts('Verify email address to unsubscribe:'));