summaryrefslogtreecommitdiffstats
path: root/lib/class/browse.class.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-03-14 06:10:27 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-03-14 06:10:27 +0000
commitd78c207f76c8ae57744300611519f4c85c2c34c4 (patch)
tree7a29bf59f4c3c9fc5f9f654ba86e6cd3f065a74f /lib/class/browse.class.php
parent98c5c04643228731b1dcf0eb48fa3dbc77815ad6 (diff)
downloadampache-d78c207f76c8ae57744300611519f4c85c2c34c4.tar.gz
ampache-d78c207f76c8ae57744300611519f4c85c2c34c4.tar.bz2
ampache-d78c207f76c8ae57744300611519f4c85c2c34c4.zip
Cosmetics: use tabs for indentation, tweak some indentation/coding style.
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r--lib/class/browse.class.php37
1 files changed, 20 insertions, 17 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index 8b145e48..8a176bb0 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -156,7 +156,7 @@ class Browse extends Query {
}
// Set the correct classes based on type
- $class = "box browse_".self::$type;
+ $class = "box browse_".self::$type;
Ajax::start_container('browse_content');
// Switch on the type of browsing we're doing
@@ -263,22 +263,25 @@ class Browse extends Query {
* //FIXME
*/
public static function set_filter_from_request($r) {
- foreach ($r as $k=>$v) {
- //reinterpret v as a list of int
- $vl = explode(',', $v);
- $ok = 1;
- foreach($vl as $i) {
- if (!is_numeric($i)) {
- $ok = 0;
- break;
- }
- }
- if ($ok)
- if (sizeof($vl) == 1)
- self::set_filter($k, $vl[0]);
- else
- self::set_filter($k, $vl);
- }
+ foreach($r as $k=>$v) {
+ //reinterpret v as a list of int
+ $vl = explode(',', $v);
+ $ok = 1;
+ foreach($vl as $i) {
+ if (!is_numeric($i)) {
+ $ok = 0;
+ break;
+ }
+ }
+ if ($ok) {
+ if (sizeof($vl) == 1) {
+ self::set_filter($k, $vl[0]);
+ }
+ }
+ else {
+ self::set_filter($k, $vl);
+ }
+ }
} // set_filter_from_request
} // browse