whitepace y, std is => array( on same line,
[civicrm-core.git] / CRM / Mailing / Form / Unsubscribe.php
index e19e5581b1a47f1b4f1019e8527688dee6690ff1..b164f22ee56dfef25fa425b31fff6a04c4681f48 100644 (file)
@@ -70,6 +70,12 @@ 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);
 
   }