fix
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@212 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
c3fa6a605c
commit
8a99bf5e53
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user