summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:48:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:48:22 +0000
commit6e299a7f63b5b5f056667dee6788fe4c5626be5f (patch)
treea4e9b70bd393d7dc260b32b347aaec74f2da9409 /play/index.php
parent27ba8110cab5b09220a110f0e2f3af026582c9fc (diff)
downloadampache-6e299a7f63b5b5f056667dee6788fe4c5626be5f.tar.gz
ampache-6e299a7f63b5b5f056667dee6788fe4c5626be5f.tar.bz2
ampache-6e299a7f63b5b5f056667dee6788fe4c5626be5f.zip
fixed voting up/down and removal of songs from democratic playlist after playback
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 */