summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-02 00:28:37 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-02 00:28:37 +0000
commite9133f9825735a072bb3ce54daac1d85edb3a806 (patch)
treef4f01cd7f846e465c1cb1a142f3a3b6ecab0326c /modules
parent00d74cac5a20c26017554b5e6eaef624b48f886e (diff)
downloadampache-e9133f9825735a072bb3ce54daac1d85edb3a806.tar.gz
ampache-e9133f9825735a072bb3ce54daac1d85edb3a806.tar.bz2
ampache-e9133f9825735a072bb3ce54daac1d85edb3a806.zip
fixed mpd logic error and post max size
Diffstat (limited to 'modules')
-rw-r--r--modules/localplay/mpd.controller.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index 3501b60e..a88e28aa 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -318,6 +318,9 @@ class AmpacheMpd {
/* Parse out the song ID and then create the song object */
preg_match("/song=(\d+)\&/",$entry['file'],$matches);
+
+ /* Attempt to build the new song */
+ $song = new Song($matches['1']);
/* If we don't know it, look up by filename */
if (!$song->title) {
@@ -328,13 +331,9 @@ class AmpacheMpd {
$song = new Song($results['id']);
}
else {
- $song = new Song();
$song->title = _('Unknown');
}
}
- else {
- $song = new Song($matches['1']);
- }
/* Make the name pretty */
$song->format_song();