summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 5f2131f388f..f7cfca90614 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -434,6 +434,9 @@ class OC {
self::$loader->registerPrefix('Pimple', '3rdparty/Pimple');
spl_autoload_register(array(self::$loader, 'load'));
+ // make a dummy session available as early as possible since error pages need it
+ self::$session = new \OC\Session\Memory('');
+
// set some stuff
//ob_start();
error_reporting(E_ALL | E_STRICT);