From: Evan Prodromou Date: Mon, 21 Jul 2008 09:18:54 +0000 (-0400) Subject: SQL error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8bc9834854e4d8b038cd8fd39262f8bcf3c63757;p=quix0rs-gnu-social.git SQL error darcs-hash:20080721091854-84dde-98b2bc313f23694a92c6f3ce92fd8f6beafe01fd.gz --- diff --git a/lib/mail.php b/lib/mail.php index 8c5c7cf3dc..c9c59db35b 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -164,7 +164,7 @@ function mail_broadcast_notice_sms($notice) { $user->smsnotify = 1; $user->whereAdd('EXISTS (select subscriber from subscriptions where ' . - ' subscriber = user.id and subscribed = ' . $notice->profile_id); + ' subscriber = user.id and subscribed = ' . $notice->profile_id . ')'); $user->whereAdd('sms is not null'); $cnt = $user->find();