summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-04 06:25:49 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-04 06:25:49 +0000
commite706e6d59b26f8fcb0f0d73ab615027a38dc8ac3 (patch)
treec07ccec96f5eb791dbd4244fed5209d86959ee20 /modules
parentf2cf027883b5bf0aaa92eec72818118ab73bc2dc (diff)
downloadampache-e706e6d59b26f8fcb0f0d73ab615027a38dc8ac3.tar.gz
ampache-e706e6d59b26f8fcb0f0d73ab615027a38dc8ac3.tar.bz2
ampache-e706e6d59b26f8fcb0f0d73ab615027a38dc8ac3.zip
fixed a minor math issue with the mpd controller
Diffstat (limited to 'modules')
-rw-r--r--modules/localplay/mpd.controller.php2
1 files changed, 1 insertions, 1 deletions
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'];