From: Evan Prodromou Date: Fri, 5 Jun 2009 17:07:26 +0000 (-0700) Subject: don't send smses to sender X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c81d8db76135af2e4343316f67a2f535971d013;p=quix0rs-gnu-social.git don't send smses to sender --- diff --git a/lib/mail.php b/lib/mail.php index 27a1d99dcb..4e1f1dbb1d 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 ');