diff options
-rwxr-xr-x | docs/CHANGELOG | 1 | ||||
-rw-r--r-- | lib/class/stream.class.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index af1173f5..d876b3a0 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.4-Alpha4 + - Fixed bug where stream would start even with no songs - Upgraded to Prototype 1.6 - Added playlists and playlist_songs methods to API - Fixed a problem with the javascript that was causing Opera to not 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; } |