From 81e037558f784d3784f61ef2dd9d17acc79255ec Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 21:42:07 -0400 Subject: [PATCH] fix interpolation of profile_id in query darcs-hash:20080518014207-84dde-8efb938e50bbd1c1008c3b8a1e09e17124d260b4.gz --- actions/all.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/all.php b/actions/all.php index f74b3ff9c0..949c722750 100644 --- a/actions/all.php +++ b/actions/all.php @@ -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');