summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/localplay.ajax.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/localplay.ajax.php b/server/localplay.ajax.php
index 7153b344..78142b18 100644
--- a/server/localplay.ajax.php
+++ b/server/localplay.ajax.php
@@ -29,7 +29,10 @@ switch ($_REQUEST['action']) {
// Make sure they they are allowed to do this
//... ok I don't really know what that means yet
+ $type = $_REQUEST['instance'] ? 'localplay' : 'stream';
+
Preference::update('mpd_active',$GLOBALS['user']->id,$_REQUEST['instance']);
+ Preference::update('play_type',$GLOBALS['user']->id,$type);
break;
default: