summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 07:23:52 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 07:23:52 -0500
commitd04556bf01721c39c36a52e1b4b983f185929fb2 (patch)
tree67193e0a257ec277e02e69f22c3ec5663b72ce18
parentbec59ef504fe71133bb3ef2a1f01337613a93355 (diff)
remove unnecessary variables from subs query
darcs-hash:20081120122352-84dde-2bc356e446abb061ac1d7e9e9bd4f8d53d688509.gz
-rw-r--r--lib/gallery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gallery.php b/lib/gallery.php
index 855d710c7..5397138ab 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);