bad string in SQL query

darcs-hash:20080720200039-84dde-62412804de2802de9f032bd4e00c8e32373d56a8.gz
This commit is contained in:
Evan Prodromou 2008-07-20 16:00:39 -04:00
parent 31765a1dec
commit bb366ab0b8

View File

@ -161,7 +161,7 @@ function mail_new_incoming_address() {
function mail_broadcast_notice_sms($notice) { function mail_broadcast_notice_sms($notice) {
$user = new User(); $user = new User();
$user->smsnotify = 1; $user->smsnotify = 1;
$user->whereAdd('EXISTS (select subscriber from subscriptions where ' $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'); $user->whereAdd('sms is not null');