From: Evan Prodromou Date: Sun, 18 May 2008 01:42:07 +0000 (-0400) Subject: fix interpolation of profile_id in query X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81e037558f784d3784f61ef2dd9d17acc79255ec;p=quix0rs-gnu-social.git fix interpolation of profile_id in query darcs-hash:20080518014207-84dde-8efb938e50bbd1c1008c3b8a1e09e17124d260b4.gz --- 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');