summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-04 08:15:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-04 08:15:40 +0000
commitb315ff2d260209c2d99ee056ed974585caf9f6cf (patch)
tree4c3e13f84b5b6cce764fb587c7a245c02b50a3b3 /lib/class/stream.class.php
parent2169a44d52a35ed05ca098235247dde078bd223d (diff)
downloadampache-b315ff2d260209c2d99ee056ed974585caf9f6cf.tar.gz
ampache-b315ff2d260209c2d99ee056ed974585caf9f6cf.tar.bz2
ampache-b315ff2d260209c2d99ee056ed974585caf9f6cf.zip
some minror tweaks
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r--lib/class/stream.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 7d0566bb..d9777879 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -60,6 +60,11 @@ class Stream {
*/
function start() {
+ if (!is_array($this->songs)) {
+ debug_event('stream','Error: No Songs Passed on ' . $this->type . ' stream','2');
+ return false;
+ }
+
$methods = get_class_methods('Stream');
$create_function = "create_" . $this->type;
if (in_array($create_function,$methods)) {