Notice Fix CRM-15159
authorJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Fri, 22 Aug 2014 13:06:37 +0000 (18:36 +0530)
committerJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Fri, 22 Aug 2014 13:06:37 +0000 (18:36 +0530)
CRM/Mailing/MailStore.php

index aecfa53beee6a3717f7741deb3a5c08491503288..44740a7064efa01ee7cf707e5e7501c4db404a73 100644 (file)
@@ -53,6 +53,9 @@ class CRM_Mailing_MailStore {
     }
 
     $protocols = CRM_Core_PseudoConstant::get('CRM_Core_DAO_MailSettings', 'protocol');
+    if (empty($protocols[$dao->protocol])) {
+      throw new Exception("Empty mail protocol");
+    }
 
     switch ($protocols[$dao->protocol]) {
       case 'IMAP':