summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2013-10-11 16:45:58 +0100
committerTom Needham <tom@owncloud.com>2013-10-11 16:45:58 +0100
commitcb110c0679ab42ef218b88361b24281590e95fae (patch)
tree1cb748ef45d06a521e640fdeba059656de732aa1 /lib
parent5c664704a3fa6000b1889b7a1c594276382ddb06 (diff)
downloadnextcloud-server-cb110c0679ab42ef218b88361b24281590e95fae.tar.gz
nextcloud-server-cb110c0679ab42ef218b88361b24281590e95fae.zip
Log the session exception when ownCloud is not installed
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php
index ff4ca588213..d4400dcf69c 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -304,9 +304,12 @@ class OC {
self::$session = new \OC\Session\Internal(OC_Util::getInstanceId());
// if session cant be started break with http 500 error
} catch (Exception $e) {
- OC_Log::write('core', 'Session could not be initialized',
- OC_Log::ERROR);
-
+ if(!OC_Config::getValue('installed')) {
+ error_log('Session could not be initialized');
+ } else {
+ OC_Log::write('core', 'Session could not be initialized',
+ OC_Log::ERROR);
+ }
header('HTTP/1.1 500 Internal Server Error');
OC_Util::addStyle("styles");
$error = 'Session could not be initialized. Please contact your ';