summaryrefslogtreecommitdiffstats
path: root/lib/search.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-09-13 00:30:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-09-13 00:30:50 +0000
commit7c64ba9cc67a25f843a5942ca5a0265dce7060ff (patch)
tree4d2e14ffc956355bb57063679c5acf97ad2b8411 /lib/search.php
parente444c0c31d1faeef6ac211bc53ce603fcd00e222 (diff)
downloadampache-7c64ba9cc67a25f843a5942ca5a0265dce7060ff.tar.gz
ampache-7c64ba9cc67a25f843a5942ca5a0265dce7060ff.tar.bz2
ampache-7c64ba9cc67a25f843a5942ca5a0265dce7060ff.zip
tweaked to fix a search problem s1amson found
Diffstat (limited to 'lib/search.php')
-rw-r--r--lib/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/search.php b/lib/search.php
index 65a87376..43d2f54d 100644
--- a/lib/search.php
+++ b/lib/search.php
@@ -80,7 +80,7 @@ function run_search($data) {
function search_song($data,$method) {
/* Generate BASE SQL */
- $base_sql = "SELECT song.id FROM song";
+ $base_sql = "SELECT DISTINCT(song.id) FROM song";
$where_sql = '';
$table_sql = ',';