diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-23 20:31:30 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-23 20:31:30 +0000 |
commit | cbdb592407c339d8158fb96e0253c1b34e011dc5 (patch) | |
tree | c5d0a955af83aa93953945820a4356f01b96d43d /lib | |
parent | 07d0f509554333f0d7ea6c2d445fa8c4996ed07b (diff) | |
download | ampache-cbdb592407c339d8158fb96e0253c1b34e011dc5.tar.gz ampache-cbdb592407c339d8158fb96e0253c1b34e011dc5.tar.bz2 ampache-cbdb592407c339d8158fb96e0253c1b34e011dc5.zip |
fixed issue where streams would start even with no songs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/stream.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 9c1ad1e8..6d620f03 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -63,7 +63,7 @@ class Stream { */ public function start() { - if (!is_array($this->songs)) { + if (!count($this->songs) AND !count($this->urls)) { debug_event('stream','Error: No Songs Passed on ' . $this->type . ' stream','2'); return false; } |