diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-04 15:24:58 -0400 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-04 15:24:58 -0400 |
commit | aa791a400b8e578ecac441f9690c3b95dfbd17e1 (patch) | |
tree | a694cdf1b3804a0c94281800d3c66f225694d14d /lib/class/random.class.php | |
parent | fd718fe7868eb17f8be63d83f5a892aadfb6afd2 (diff) | |
download | ampache-aa791a400b8e578ecac441f9690c3b95dfbd17e1.tar.gz ampache-aa791a400b8e578ecac441f9690c3b95dfbd17e1.tar.bz2 ampache-aa791a400b8e578ecac441f9690c3b95dfbd17e1.zip |
Replace useless return with useful return.
Diffstat (limited to 'lib/class/random.class.php')
-rw-r--r-- | lib/class/random.class.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/class/random.class.php b/lib/class/random.class.php index 5472bb80..75d728b2 100644 --- a/lib/class/random.class.php +++ b/lib/class/random.class.php @@ -469,7 +469,7 @@ class Random implements media { } // get_id_name /** - * validiate_type + * validate_type * this validates the random type */ public static function validate_type($type) { @@ -482,12 +482,9 @@ class Random implements media { case 'rated': return $type; break; - default: - return 'default'; - break; } // end switch - return $type; + return 'default'; } // validate_type |