summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index f0acd2f0492..c48f17ed095 100644
--- a/cron.php
+++ b/cron.php
@@ -56,10 +56,10 @@ try {
// load all apps to get all api routes properly setup
OC_App::loadApps();
- \OC::$session->close();
+ \OC::$server->getSession()->close();
// initialize a dummy memory session
- \OC::$session = new \OC\Session\Memory('');
+ \OC::$server->setSession(new \OC\Session\Memory(''));
$logger = \OC_Log::$object;