Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Lindner <mail@steffen-lindner.de>2014-07-02 13:52:45 +0400
committerSteffen Lindner <mail@steffen-lindner.de>2014-07-02 13:52:45 +0400
commit9433b94fd5734e8db93be6b0e7246b1114a15591 (patch)
tree2f63053e416e6c1242fb57187c22038ccaada1f8 /cron.php
parent805a7cf485d8fa9aa4af7c1b279e1084f53cd2af (diff)
initialize a dummy memory session - fixes https://github.com/owncloud/activity/issues/78
Diffstat (limited to 'cron.php')
-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