SQL error

darcs-hash:20080721091854-84dde-98b2bc313f23694a92c6f3ce92fd8f6beafe01fd.gz
This commit is contained in:
Evan Prodromou 2008-07-21 05:18:54 -04:00
parent 289b64c94d
commit 8bc9834854
1 changed files with 1 additions and 1 deletions

View File

@ -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();