fix interpolation of profile_id in query
darcs-hash:20080518014207-84dde-8efb938e50bbd1c1008c3b8a1e09e17124d260b4.gz
This commit is contained in:
parent
82b80b2f75
commit
81e037558f
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user