summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/ajax/api.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php
index a229c17e804..23abc579272 100644
--- a/apps/media/ajax/api.php
+++ b/apps/media/ajax/api.php
@@ -46,6 +46,9 @@ if(!isset($arguments['album'])){
if(!isset($arguments['search'])){
$arguments['search']='';
}
+
+session_write_close();
+
OC_MEDIA_COLLECTION::$uid=OCP\USER::getUser();
if($arguments['action']){
switch($arguments['action']){