diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-04 08:15:40 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-04 08:15:40 +0000 |
commit | b315ff2d260209c2d99ee056ed974585caf9f6cf (patch) | |
tree | 4c3e13f84b5b6cce764fb587c7a245c02b50a3b3 /lib/class/stream.class.php | |
parent | 2169a44d52a35ed05ca098235247dde078bd223d (diff) | |
download | ampache-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.php | 5 |
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)) { |