From 8a99bf5e531c7779efe2c38e316eddc92666ecf3 Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 4 Jul 2007 01:06:27 +0000 Subject: [PATCH] fix git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@212 7f39781d-f577-437e-ae19-be835c7a54ca --- core/database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 7e5884f8..0dced354 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -122,7 +122,7 @@ class Database { if(count($tag_search->variables) == 0 || $database_fails) { $query = new Querylet("SELECT * FROM images "); } - else if(count($tag_search->variables) == 1 || $positive_tag_count == 1) { + else if(count($tag_search->variables) == 1 && $positive_tag_count == 1) { $query = new Querylet( "SELECT * FROM images WHERE images.id IN (SELECT image_id FROM tags WHERE tag = ?) ", $tag_search->variables);