summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php7
1 files changed, 3 insertions, 4 deletions
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 */