From cafe91fd5d5c2cff199758246e8a3bcd7dc77e79 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 24 Nov 2007 21:57:08 +0000 Subject: really fixed the non-removal of played songs this time --- play/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'play') diff --git a/play/index.php b/play/index.php index 204b0021..2030c3ff 100644 --- a/play/index.php +++ b/play/index.php @@ -296,8 +296,9 @@ if ($bytesStreamed > $minBytesStreamed) { $user->update_stats($song->id); /* If this is a voting tmp playlist remove the entry */ - if (is_object($democratic)) { + if ($demo_id) { $row_id = $democratic->get_uid_from_object_id($song_id,'song'); + debug_event('Democratic','Removing Song Entry from Democratic Playlist','1'); $democratic->delete_votes($row_id); } // if tmp_playlist -- cgit