summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-09 08:29:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-09 08:29:50 +0000
commit11f28a1d4a752fc9aa29699c1c129e0c723fb8b7 (patch)
treef4beb32befc2972e9ea36a9a81c49bfb3f9459a3 /lib/class
parentaf2ff07a8174ac2796fa45337bcc5c70d870e0b1 (diff)
downloadampache-11f28a1d4a752fc9aa29699c1c129e0c723fb8b7.tar.gz
ampache-11f28a1d4a752fc9aa29699c1c129e0c723fb8b7.tar.bz2
ampache-11f28a1d4a752fc9aa29699c1c129e0c723fb8b7.zip
made it so you could alpha_match search on artists
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/browse.class.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index 91fd067b..c5258c0c 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -240,6 +240,16 @@ class Browse {
break;
}
} // end album
+ if ($_SESSION['browse']['type'] == 'artist') {
+ switch($filter) {
+ case 'alpha_match':
+ $filter_sql = " `artist`.`name` LIKE '" . Dba::escape($value) . "%' AND ";
+ break;
+ default:
+ // Rien a faire
+ break;
+ } // end filter
+ } // end artist
return $filter_sql;