diff options
Diffstat (limited to 'play/index.php')
-rw-r--r-- | play/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/play/index.php b/play/index.php index 2030c3ff..f97c1e07 100644 --- a/play/index.php +++ b/play/index.php @@ -298,8 +298,10 @@ if ($bytesStreamed > $minBytesStreamed) { /* If this is a voting tmp playlist remove the entry */ 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 ($row_id) { + debug_event('Democratic','Removing ' . $song->title . ' from Democratic Playlist','1'); + $democratic->delete_votes($row_id); + } } // if tmp_playlist /* Set the Song as Played if it isn't already */ |