From 868f2b2a2029ea3453e6ef219c96e8bfeb6097e7 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 13 Nov 2006 16:26:20 +0000 Subject: fixed parse error if no localplay type is selected --- modules/localplay/mpd.controller.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/localplay/mpd.controller.php') 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); -- cgit