summaryrefslogtreecommitdiffstats
path: root/lib/search.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-06-02 02:21:32 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-06-02 02:21:32 +0000
commitc3e966a72a084d917cf161c28dad6dd425b24f2c (patch)
tree1cd04af20ae902a446f8a51e7d2be16d90e37283 /lib/search.php
parent62e7eadcba6b691a1c7058eeedcac70d6f853fa0 (diff)
downloadampache-c3e966a72a084d917cf161c28dad6dd425b24f2c.tar.gz
ampache-c3e966a72a084d917cf161c28dad6dd425b24f2c.tar.bz2
ampache-c3e966a72a084d917cf161c28dad6dd425b24f2c.zip
sync from trunk
Diffstat (limited to 'lib/search.php')
-rw-r--r--lib/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/search.php b/lib/search.php
index 4a10aff7..a725dcb3 100644
--- a/lib/search.php
+++ b/lib/search.php
@@ -194,7 +194,7 @@ function search_song($data,$operator,$method,$limit) {
$ids[] = $row['object_id'];
}
- $where_sql .= implode(',',$ids) . ')';
+ $where_sql .= implode(',',$ids) . ') ' . $operator;
break;
case 'tag':
@@ -209,7 +209,7 @@ function search_song($data,$operator,$method,$limit) {
$ids[] = $row['object_id'];
}
- $where_sql = " `song`.`id` IN (" . implode(',',$ids) . ")";
+ $where_sql = " `song`.`id` IN (" . implode(',',$ids) . ") $operator";
break;
default: