From e706e6d59b26f8fcb0f0d73ab615027a38dc8ac3 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 4 Jan 2007 06:25:49 +0000 Subject: fixed a minor math issue with the mpd controller --- modules/localplay/mpd.controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/localplay/mpd.controller.php') diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index 72ce56ab..c31a020b 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -385,7 +385,7 @@ class AmpacheMpd { $array['volume'] = $this->_mpd->volume; $array['repeat'] = $this->_mpd->repeat; $array['random'] = $this->_mpd->random; - $array['track'] = $track; + $array['track'] = $track+1; preg_match("/song=(\d+)\&/",$this->_mpd->playlist[$track]['file'],$matches); $song_id = $matches['1']; -- cgit