summaryrefslogtreecommitdiffstats
path: root/lib/class/radio.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-21 01:20:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-21 01:20:07 +0000
commit84420db434e5b3afe08d4626c38d7cfacc62fb68 (patch)
tree7b898af106878b65be5b86856714258c23008dd2 /lib/class/radio.class.php
parent41db2472342bd0cdcd572f9f37bca698db6f6d2f (diff)
downloadampache-84420db434e5b3afe08d4626c38d7cfacc62fb68.tar.gz
ampache-84420db434e5b3afe08d4626c38d7cfacc62fb68.tar.bz2
ampache-84420db434e5b3afe08d4626c38d7cfacc62fb68.zip
fixed rating display and rating advanced search, also allow new genre when adding radio station
Diffstat (limited to 'lib/class/radio.class.php')
-rw-r--r--lib/class/radio.class.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/class/radio.class.php b/lib/class/radio.class.php
index 7665c887..99232944 100644
--- a/lib/class/radio.class.php
+++ b/lib/class/radio.class.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright 2001 - 2007 Ampache.org
+ Copyright Ampache.org
All Rights Reserved
This program is free software; you can redistribute it and/or
@@ -168,6 +168,11 @@ class Radio {
Error::add('url','Invalid URL must be http:// or https://');
}
+ // If they specified other try to use that
+ if (strlen($data['other_genre'])) {
+ $data['genre'] = Catalog::check_genre($data['other_genre']);
+ }
+
// Make sure it's a real genre
$genre = new Genre($data['genre']);
if (!$genre->name) {