Merge pull request #15745 from seamuslee001/master
[civicrm-core.git] / CRM / Mailing / Form / Subscribe.php
index 56e34f1e26910fc2980d85ba31ecad8eca924d21..ba617aac09532a9edc4b583a40a45576d943b4a5 100644 (file)
@@ -115,7 +115,7 @@ ORDER BY title";
         $rows[] = $row;
       }
       if (empty($rows)) {
-        CRM_Core_Error::fatal(ts('There are no public mailing list groups to display.'));
+        throw new CRM_Core_Exception(ts('There are no public mailing list groups to display.'));
       }
       $this->assign('rows', $rows);
       $this->addFormRule(['CRM_Mailing_Form_Subscribe', 'formRule']);