summaryrefslogtreecommitdiff
path: root/lib/mail.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-05 10:07:26 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-05 10:07:26 -0700
commit2c81d8db76135af2e4343316f67a2f535971d013 (patch)
tree6e67530f50e6cf94779ef45bdc8eda0593508c99 /lib/mail.php
parent4ec1c333073fd693147ff34895cf7e3664f83cf6 (diff)
don't send smses to sender
Diffstat (limited to 'lib/mail.php')
-rw-r--r--lib/mail.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 27a1d99dc..4e1f1dbb1 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -335,6 +335,7 @@ function mail_broadcast_notice_sms($notice)
"FROM $UT JOIN subscription " .
"ON $UT.id = subscription.subscriber " .
'WHERE subscription.subscribed = ' . $notice->profile_id . ' ' .
+ 'AND subscription.subscribed != subscription.subscriber ' .
"AND $UT.smsemail IS NOT null " .
"AND $UT.smsnotify = 1 " .
'AND subscription.sms = 1 ');