From c3e966a72a084d917cf161c28dad6dd425b24f2c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 2 Jun 2009 02:21:32 +0000 Subject: [PATCH] sync from trunk --- docs/CHANGELOG | 2 ++ lib/search.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 783b5675..1a761751 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.6-Alpha1 + - Add missing operator on tag and rating searches so they will + work with other methods (Thx kiehnet@netscape.net) - Add MusicBrainz MBID support to uniqly identify albums and also get more album art (Thx flowerysong) - Fix the url to song function 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: