From 6e299a7f63b5b5f056667dee6788fe4c5626be5f Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 24 Nov 2007 21:48:22 +0000 Subject: fixed voting up/down and removal of songs from democratic playlist after playback --- play/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'play') diff --git a/play/index.php b/play/index.php index 55bce5ac..204b0021 100644 --- a/play/index.php +++ b/play/index.php @@ -296,10 +296,9 @@ if ($bytesStreamed > $minBytesStreamed) { $user->update_stats($song->id); /* If this is a voting tmp playlist remove the entry */ - if (is_object($tmp_playlist)) { - if ($tmp_playlist->type == 'vote') { - $tmp_playlist->delete_track($song_id); - } + if (is_object($democratic)) { + $row_id = $democratic->get_uid_from_object_id($song_id,'song'); + $democratic->delete_votes($row_id); } // if tmp_playlist /* Set the Song as Played if it isn't already */ -- cgit