summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cron.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index 8fa72a319c0..789633035d2 100644
--- a/cron.php
+++ b/cron.php
@@ -53,6 +53,9 @@ try {
\OC::$session->close();
+ // initialize a dummy memory session
+ \OC::$session = new \OC\Session\Memory('');
+
$logger = \OC_Log::$object;
// Don't do anything if ownCloud has not been installed