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
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function mail_new_incoming_address() {
function mail_broadcast_notice_sms($notice) {
$user = new User();
$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);
$user->whereAdd('sms is not null');