diff options
-rw-r--r-- | play/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
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); + } } } |