From b35c84170008957e254a8c2f8edd9e0d140a0d0d Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 5 Dec 2016 15:49:01 -0500 Subject: [PATCH] Add check in admin email for notify email address. If empty then don't try to send out email. --- classes/helper/notification.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/helper/notification.php b/classes/helper/notification.php index 003aab0..85c7ae3 100644 --- a/classes/helper/notification.php +++ b/classes/helper/notification.php @@ -152,6 +152,9 @@ class GlmMembersAdmin_event_notification extends GlmDataMembers $notify_to = $settings['notify_to']; $notify_from = $settings['notify_from']; $notify_message = $settings['notify_message']; + if ( !$notify_to ) { + return false; + } // Setup the Smarty Engine $smarty = new smartyTemplateSupport(); -- 2.17.1