diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-13 16:26:20 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-13 16:26:20 +0000 |
commit | 868f2b2a2029ea3453e6ef219c96e8bfeb6097e7 (patch) | |
tree | 5959738de12d7740e0210c541c7706d1fb5685c1 /modules | |
parent | 70c2fedd2992bc2bf5309a9afcc8b810aa7f80ce (diff) | |
download | ampache-868f2b2a2029ea3453e6ef219c96e8bfeb6097e7.tar.gz ampache-868f2b2a2029ea3453e6ef219c96e8bfeb6097e7.tar.bz2 ampache-868f2b2a2029ea3453e6ef219c96e8bfeb6097e7.zip |
fixed parse error if no localplay type is selected
Diffstat (limited to 'modules')
-rw-r--r-- | modules/localplay/mpd.controller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index 46ea9951..b81b6a95 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -109,6 +109,8 @@ class AmpacheMpd { * and then add them to MPD */ function add_songs($songs) { + /* Clear the playlist first */ + $this->clean_playlist(); foreach ($songs as $song_id) { $song = new Song($song_id); |