From cbdb592407c339d8158fb96e0253c1b34e011dc5 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 23 Dec 2007 20:31:30 +0000 Subject: fixed issue where streams would start even with no songs --- lib/class/stream.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/class') 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; } -- cgit