From 8bc9834854e4d8b038cd8fd39262f8bcf3c63757 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 21 Jul 2008 05:18:54 -0400 Subject: [PATCH] SQL error darcs-hash:20080721091854-84dde-98b2bc313f23694a92c6f3ce92fd8f6beafe01fd.gz --- lib/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();