diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-18 05:52:06 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-18 05:52:06 +0000 |
commit | f64a2f4d00b801408b558917bae8f6a428931fe7 (patch) | |
tree | 3640a6ac0a94c00d021835a6cf94d83ec7377ccb /lib/class/browse.class.php | |
parent | 15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f (diff) | |
download | ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.gz ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.bz2 ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.zip |
fixed admin prefs, flushed out localplay stuff, tweaked filters on browse
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r-- | lib/class/browse.class.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index fbcc2948..cb8acbb7 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -78,6 +78,20 @@ class Browse { } // set_filter /** + * reset_filter + * This is a wrapper function that resets the filters + */ + public static function reset_filters() { + + if (!is_array($_SESSION['browse']['filter'])) { return true; } + + foreach ($_SESSION['browse']['filter'] AS $key=>$value) { + self::set_filter($key,''); + } + + } // reset_filters + + /** * get_filter * returns the specified filter value */ |