Log the session exception when ownCloud is not installed

remotes/origin/stable6
Tom Needham 12 years ago
parent 5c664704a3
commit cb110c0679
  1. 5
      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) {
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 ';

Loading…
Cancel
Save