projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca8bf17
)
Add check in admin email for notify email address.
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 5 Dec 2016 20:49:01 +0000
(15:49 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Mon, 5 Dec 2016 20:49:01 +0000
(15:49 -0500)
If empty then don't try to send out email.
classes/helper/notification.php
patch
|
blob
|
history
diff --git
a/classes/helper/notification.php
b/classes/helper/notification.php
index
003aab0
..
85c7ae3
100644
(file)
--- 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();