From d04556bf01721c39c36a52e1b4b983f185929fb2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 20 Nov 2008 07:23:52 -0500 Subject: [PATCH] remove unnecessary variables from subs query darcs-hash:20081120122352-84dde-2bc356e446abb061ac1d7e9e9bd4f8d53d688509.gz --- lib/gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5