summaryrefslogtreecommitdiffstats
path: root/lib/search.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-11-29 18:38:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-11-29 18:38:46 +0000
commit245b69d645b0b00ef52063f08466e11e3bf09ccc (patch)
tree3deb277e6ae05d4821dcb5bdf86d34262c9f65cf /lib/search.php
parent73809f0c1dd345e572b2cea9503454f3a1bb2a12 (diff)
downloadampache-245b69d645b0b00ef52063f08466e11e3bf09ccc.tar.gz
ampache-245b69d645b0b00ef52063f08466e11e3bf09ccc.tar.bz2
ampache-245b69d645b0b00ef52063f08466e11e3bf09ccc.zip
some other minor changes, nothing big
Diffstat (limited to 'lib/search.php')
-rw-r--r--lib/search.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/search.php b/lib/search.php
index fe01ad0d..885dc27e 100644
--- a/lib/search.php
+++ b/lib/search.php
@@ -124,15 +124,8 @@ function search_song($data,$operator,$method,$limit) {
{
if($ii++ > 0)
$where_sql .= " AND ";
- $where_sql .= "
- (
- song.title LIKE '%$word%' OR
- album2.name LIKE '%$word%' OR
- artist2.name LIKE '%$word%' OR
- song.year LIKE '%$word%' OR
- song.file LIKE '%$word%' OR
- tag2.name LIKE '%$word%'
- ) ";
+ $where_sql .= "(song.title LIKE '%$word%' OR album2.name LIKE '%$word%' OR artist2.name LIKE '%$word%' OR
+ song.year LIKE '%$word%' OR song.file LIKE '%$word%' OR tag2.name LIKE '%$word%') ";
}
$where_sql .= " ) $operator";
$table_sql .= " LEFT JOIN `album` as `album2` ON `song`.`album`=`album2`.`id`";