diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-09 08:29:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-09 08:29:50 +0000 |
commit | 11f28a1d4a752fc9aa29699c1c129e0c723fb8b7 (patch) | |
tree | f4beb32befc2972e9ea36a9a81c49bfb3f9459a3 /lib/class | |
parent | af2ff07a8174ac2796fa45337bcc5c70d870e0b1 (diff) | |
download | ampache-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.php | 10 |
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; |