diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-04-19 15:18:27 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-04-26 14:53:59 +0200 |
commit | 172499d5f3be298e105139020a1afc9859841b31 (patch) | |
tree | 349214252f2d53762d44bbf801edb41a2a764e3e /lib | |
parent | 26e2672a5a35b8fa417b7f8650bede78f01b70d7 (diff) | |
download | nextcloud-server-172499d5f3be298e105139020a1afc9859841b31.tar.gz nextcloud-server-172499d5f3be298e105139020a1afc9859841b31.zip |
Don't start the session when in cli mode
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 3b421486daf..8633ae9b637 100644 --- a/lib/base.php +++ b/lib/base.php @@ -478,7 +478,9 @@ class OC { self::checkConfig(); self::checkInstalled(); self::checkSSL(); - self::initSession(); + if ( !self::$CLI ) { + self::initSession(); + } $errors = OC_Util::checkServer(); if (count($errors) > 0) { |