From: Robin Appelman Date: Fri, 19 Apr 2013 13:18:27 +0000 (+0200) Subject: Don't start the session when in cli mode X-Git-Tag: v6.0.0alpha2~841^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=172499d5f3be298e105139020a1afc9859841b31;p=nextcloud-server.git Don't start the session when in cli mode --- 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) {