]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix interpolation of profile_id in query
authorEvan Prodromou <evan@prodromou.name>
Sun, 18 May 2008 01:42:07 +0000 (21:42 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 18 May 2008 01:42:07 +0000 (21:42 -0400)
darcs-hash:20080518014207-84dde-8efb938e50bbd1c1008c3b8a1e09e17124d260b4.gz

actions/all.php

index f74b3ff9c0bcc2a492590f1f4161931338efc561..949c7227502d62bf394bd008a004dbea15ba4a69 100644 (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');