summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-18 21:47:44 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-18 21:47:44 +0000
commit755fffbd78dc8411b0ba8d0918416f7c2ff5e4a0 (patch)
tree93fef0a189fa74e0660ec4424202293b10e424b4 /modules/localplay/mpd.controller.php
parentd6075fe25c39303425f7291b9fb3658217c48097 (diff)
downloadampache-755fffbd78dc8411b0ba8d0918416f7c2ff5e4a0.tar.gz
ampache-755fffbd78dc8411b0ba8d0918416f7c2ff5e4a0.tar.bz2
ampache-755fffbd78dc8411b0ba8d0918416f7c2ff5e4a0.zip
fix typo also tweak the localplay controllers so they update the active instance correctly
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index ba3d1b6e..79e1b710 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -252,6 +252,7 @@ class AmpacheMpd extends localplay_controller {
$user_id = $user_id ? $user_id : $GLOBALS['user']->id;
Preference::update('mpd_active',$user_id,intval($uid));
+ Config::set(array('mpd_active'=>intval($uid)),'1');
return true;