From 673dfd2bff70bdfc1489d6f8217c58e8e964cce2 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 5 Nov 2006 10:02:43 +0000 Subject: wups gotta wrap that baby --- play/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'play') diff --git a/play/index.php b/play/index.php index 89be25b8..a3ba5cd3 100644 --- a/play/index.php +++ b/play/index.php @@ -256,8 +256,10 @@ while (!feof($fp) && (connection_status() == 0)) { if ($bytesStreamed > $minBytesStreamed) { $user->update_stats($song_id); /* If this is a voting tmp playlist remove the entry */ - if ($tmp_playlist->type == 'vote') { - $tmp_playlist->delete_track($song_id); + if (is_object($tmp_playlist) { + if ($tmp_playlist->type == 'vote') { + $tmp_playlist->delete_track($song_id); + } } } -- cgit