summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-02 00:25:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-02 00:25:07 +0000
commit6a335845ccd2650e2444080a5faa5dc6151ab993 (patch)
tree29bb4c54b00e24f13db2fe38adc002492c7d151b /play/index.php
parent362610c13217a9ee364f97262c2fc878d97c335a (diff)
downloadampache-6a335845ccd2650e2444080a5faa5dc6151ab993.tar.gz
ampache-6a335845ccd2650e2444080a5faa5dc6151ab993.tar.bz2
ampache-6a335845ccd2650e2444080a5faa5dc6151ab993.zip
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
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php6
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 */