]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remove unnecessary variables from subs query
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 12:23:52 +0000 (07:23 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 12:23:52 +0000 (07:23 -0500)
darcs-hash:20081120122352-84dde-2bc356e446abb061ac1d7e9e9bd4f8d53d688509.gz

lib/gallery.php

index 855d710c79f475be46cbf93f81d634ea8200d9f3..5397138ab9f099e1a75dbe27be1d419d1658ab36 100644 (file)
@@ -101,7 +101,7 @@ class GalleryAction extends Action {
                                                         'FROM profile JOIN subscription ' .
                                                         'ON profile.id = subscription.' . $lst . ' ' .
                                                         'WHERE ' . $usr . ' = ' . $profile->id . ' ' .
-                                                        'AND ' . $lst . ' != ' . $usr . ' ' .
+                                                        'AND subscriber != subscribed ' .
                                                         'ORDER BY subscription.created DESC ' . 
                                                         $lim);