summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 21:42:07 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 21:42:07 -0400
commit81e037558f784d3784f61ef2dd9d17acc79255ec (patch)
tree1e32ce3eeb42db3e43fa2c1887ae4007a3ca6f5d
parent82b80b2f75ffb8368078ce0566df394b92bb49e9 (diff)
fix interpolation of profile_id in query
darcs-hash:20080518014207-84dde-8efb938e50bbd1c1008c3b8a1e09e17124d260b4.gz
-rw-r--r--actions/all.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/all.php b/actions/all.php
index f74b3ff9c..949c72275 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');