diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-05 23:38:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-05 23:38:15 +0000 |
commit | 81ad69915a9cc20e5527b251a0e0245a4e53877a (patch) | |
tree | b7ec4a02492347eae73b7f8f5b9cef5a48888dab /lib/class/tmp_playlist.class.php | |
parent | 66688aeea7d25723bbfa2b09f7135c61ad5894b2 (diff) | |
download | ampache-81ad69915a9cc20e5527b251a0e0245a4e53877a.tar.gz ampache-81ad69915a9cc20e5527b251a0e0245a4e53877a.tar.bz2 ampache-81ad69915a9cc20e5527b251a0e0245a4e53877a.zip |
fixed an issue with democratic play when the voted playlist ran out
Diffstat (limited to 'lib/class/tmp_playlist.class.php')
-rw-r--r-- | lib/class/tmp_playlist.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/tmp_playlist.class.php b/lib/class/tmp_playlist.class.php index e82036f3..127ea2d0 100644 --- a/lib/class/tmp_playlist.class.php +++ b/lib/class/tmp_playlist.class.php @@ -138,7 +138,7 @@ class tmpPlaylist { /* We need to pull a random one from the base_playlist */ $base_playlist = new playlist($this->base_playlist); $data = $base_playlist->get_random_songs(1); - $results['object_id'] = $data['song']; + $results['object_id'] = $data['0']; } return $results['object_id']; |