From: Evan Prodromou Date: Thu, 20 Nov 2008 12:23:52 +0000 (-0500) Subject: remove unnecessary variables from subs query X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d04556bf01721c39c36a52e1b4b983f185929fb2;p=quix0rs-gnu-social.git remove unnecessary variables from subs query darcs-hash:20081120122352-84dde-2bc356e446abb061ac1d7e9e9bd4f8d53d688509.gz --- diff --git a/lib/gallery.php b/lib/gallery.php index 855d710c79..5397138ab9 100644 --- a/lib/gallery.php +++ b/lib/gallery.php @@ -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);