diff options
author | Tom Needham <tom@owncloud.com> | 2013-10-11 17:16:37 +0100 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2013-10-11 17:16:37 +0100 |
commit | cf7ea4bec5be91790682417dfe5cc60eccab8a8a (patch) | |
tree | cefd9a51a760eae8a775774e45f29a84ff6f282e /lib/base.php | |
parent | cb110c0679ab42ef218b88361b24281590e95fae (diff) | |
download | nextcloud-server-cf7ea4bec5be91790682417dfe5cc60eccab8a8a.tar.gz nextcloud-server-cf7ea4bec5be91790682417dfe5cc60eccab8a8a.zip |
Handle ownCloud logging when data dir not created
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/base.php b/lib/base.php index d4400dcf69c..4744491141e 100644 --- a/lib/base.php +++ b/lib/base.php @@ -304,12 +304,8 @@ class OC { self::$session = new \OC\Session\Internal(OC_Util::getInstanceId()); // if session cant be started break with http 500 error } catch (Exception $e) { - 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); - } + 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 '; |