diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-06-18 04:23:53 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-06-18 04:23:53 +0000 |
commit | cabbf907970a6d514a4b9288abcfec3c0c6b2d55 (patch) | |
tree | 696dd21199d779c8764d035261f66e12c730dcce /lib/class/radio.class.php | |
parent | 4811ddc8c70a7189d7347286a2892451109c226c (diff) | |
download | ampache-cabbf907970a6d514a4b9288abcfec3c0c6b2d55.tar.gz ampache-cabbf907970a6d514a4b9288abcfec3c0c6b2d55.tar.bz2 ampache-cabbf907970a6d514a4b9288abcfec3c0c6b2d55.zip |
make the live stream add work again by removing genre needs to get tag added, but I can do that later
Diffstat (limited to 'lib/class/radio.class.php')
-rw-r--r-- | lib/class/radio.class.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/class/radio.class.php b/lib/class/radio.class.php index 99232944..b1ee3f3d 100644 --- a/lib/class/radio.class.php +++ b/lib/class/radio.class.php @@ -168,17 +168,6 @@ 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) { - Error::add('genre','Invalid Genre'); - } - // Make sure it's a real catalog $catalog = new Catalog($data['catalog']); if (!$catalog->name) { @@ -191,14 +180,13 @@ class Radio { $name = Dba::escape($data['name']); $site_url = Dba::escape($data['site_url']); $url = Dba::escape($data['url']); - $genre = $genre->id; $catalog = $catalog->id; $frequency = Dba::escape($data['frequency']); $call_sign = Dba::escape($data['call_sign']); // If we've made it this far everything must be ok... I hope - $sql = "INSERT INTO `live_stream` (`name`,`site_url`,`url`,`genre`,`catalog`,`frequency`,`call_sign`) " . - "VALUES ('$name','$site_url','$url','$genre','$catalog','$frequency','$call_sign')"; + $sql = "INSERT INTO `live_stream` (`name`,`site_url`,`url`,`catalog`,`frequency`,`call_sign`) " . + "VALUES ('$name','$site_url','$url','$catalog','$frequency','$call_sign')"; $db_results = Dba::query($sql); return $db_results; |