summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-05 10:02:43 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-05 10:02:43 +0000
commit673dfd2bff70bdfc1489d6f8217c58e8e964cce2 (patch)
treead6eeb59a133e89165204b5ec241a3eb037afa90 /play
parentd3b5f2f3f814f0342094b60614af10ec7b9d82b2 (diff)
downloadampache-673dfd2bff70bdfc1489d6f8217c58e8e964cce2.tar.gz
ampache-673dfd2bff70bdfc1489d6f8217c58e8e964cce2.tar.bz2
ampache-673dfd2bff70bdfc1489d6f8217c58e8e964cce2.zip
wups gotta wrap that baby
Diffstat (limited to 'play')
-rw-r--r--play/index.php6
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);
+ }
}
}