diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-05-28 01:15:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-05-28 01:15:38 +0200 |
commit | 040045cc2ea1ecde2d199a45c5a33cd197bc583b (patch) | |
tree | c0043b77731ce585ff231dbd3812c080bc81bbcb /lib | |
parent | f547b66d6bf00040438ab3ba544bb55aab2f2bb5 (diff) | |
download | nextcloud-server-040045cc2ea1ecde2d199a45c5a33cd197bc583b.tar.gz nextcloud-server-040045cc2ea1ecde2d199a45c5a33cd197bc583b.zip |
provide a dummy session for CLI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 42b57527063..f1145b651ae 100644 --- a/lib/base.php +++ b/lib/base.php @@ -445,6 +445,8 @@ class OC { self::checkSSL(); if ( !self::$CLI ) { self::initSession(); + } else { + self::$session = new \OC\Session\Memory(''); } $errors = OC_Util::checkServer(); |