diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-02 00:25:07 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-02 00:25:07 +0000 |
commit | 6a335845ccd2650e2444080a5faa5dc6151ab993 (patch) | |
tree | 29bb4c54b00e24f13db2fe38adc002492c7d151b /lib/class/tmpplaylist.class.php | |
parent | 362610c13217a9ee364f97262c2fc878d97c335a (diff) | |
download | ampache-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 'lib/class/tmpplaylist.class.php')
-rw-r--r-- | lib/class/tmpplaylist.class.php | 12 |
1 files changed, 0 insertions, 12 deletions
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 /** |