fix interpolation of profile_id in query

darcs-hash:20080518014207-84dde-8efb938e50bbd1c1008c3b8a1e09e17124d260b4.gz
This commit is contained in:
Evan Prodromou 2008-05-17 21:42:07 -04:00
parent 82b80b2f75
commit 81e037558f
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ class AllAction extends ShowstreamAction {
$notice = DB_DataObject::factory('notice');
# XXX: chokety and bad
$notice->whereAdd('EXISTS (SELECT subscribed from subscription where subscriber = {$profile->id})', 'OR');
$notice->whereAdd('profile_id = {$profile->id}', 'OR');
$notice->whereAdd('EXISTS (SELECT subscribed from subscription where subscriber = '.$profile->id.')', 'OR');
$notice->whereAdd('profile_id = ' . $profile->id, 'OR');
$notice->orderBy('created DESC');