Don't start the session when in cli mode

This commit is contained in:
Robin Appelman 2013-04-19 15:18:27 +02:00 committed by Bart Visscher
parent 26e2672a5a
commit 172499d5f3
1 changed files with 3 additions and 1 deletions

View 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) {