don't send smses to sender

This commit is contained in:
Evan Prodromou 2009-06-05 10:07:26 -07:00
parent 4ec1c33307
commit 2c81d8db76

View File

@ -335,6 +335,7 @@ function mail_broadcast_notice_sms($notice)
"FROM $UT JOIN subscription " . "FROM $UT JOIN subscription " .
"ON $UT.id = subscription.subscriber " . "ON $UT.id = subscription.subscriber " .
'WHERE subscription.subscribed = ' . $notice->profile_id . ' ' . 'WHERE subscription.subscribed = ' . $notice->profile_id . ' ' .
'AND subscription.subscribed != subscription.subscriber ' .
"AND $UT.smsemail IS NOT null " . "AND $UT.smsemail IS NOT null " .
"AND $UT.smsnotify = 1 " . "AND $UT.smsnotify = 1 " .
'AND subscription.sms = 1 '); 'AND subscription.sms = 1 ');