]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't start the session when in cli mode
authorRobin Appelman <icewind@owncloud.com>
Fri, 19 Apr 2013 13:18:27 +0000 (15:18 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 26 Apr 2013 12:53:59 +0000 (14:53 +0200)
lib/base.php

index 3b421486daf8c0fecc774313713b1b514b973cc3..8633ae9b637a1e1d0de3fed2b37fb3983721d014 100644 (file)
@@ -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) {