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 --- lib/class/tmpplaylist.class.php | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/class/tmpplaylist.class.php') diff --git a/lib/class/tmpplaylist.class.php b/lib/class/tmpplaylist.class.php index 9e0c5a3a..ec3a9962 100644 --- a/lib/class/tmpplaylist.class.php +++ b/lib/class/tmpplaylist.class.php @@ -288,18 +288,6 @@ class tmpPlaylist { "WHERE tmp_playlist.id IS NULL"; $db_results = Dba::query($sql); - // If we don't allow it, don't waste the time - if (!Config::get('allow_democratic_playback')) { return true; } - - // This deletes data without votes, if it's a voting democratic playlist - $sql = "DELETE FROM tmp_playlist_data USING tmp_playlist_data " . - "LEFT JOIN user_vote ON tmp_playlist_data.id=user_vote.object_id " . - "LEFT JOIN tmp_playlist ON tmp_playlist.id=tmp_playlist.tmp_playlist " . - "WHERE user_vote.object_id IS NULL AND tmp_playlist.type = 'vote'"; - $db_results = Dba::query($sql); - - return true; - } // prune_tracks /** -- cgit