summaryrefslogtreecommitdiffstats
path: root/lib/class/radio.class.php
diff options
context:
space:
mode:
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) {