From 6a335845ccd2650e2444080a5faa5dc6151ab993 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 2 Dec 2007 00:25:07 +0000 Subject: fixed democratic play ordering along with some misc play isues with it, limited object on rightbar to 100 also started fixing the user registration, which I had forgotten about --- play/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'play') 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 */ -- cgit