From: Steve Sutton Date: Mon, 5 Dec 2016 20:49:01 +0000 (-0500) Subject: Add check in admin email for notify email address. X-Git-Tag: v1.5.8^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b35c84170008957e254a8c2f8edd9e0d140a0d0d;p=WP-Plugins%2Fglm-member-db-events.git Add check in admin email for notify email address. If empty then don't try to send out email. --- 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();