Commit 01b33736 authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't try to add the message to the session if get_config doesn't exist...

Don't try to add the message to the session if get_config doesn't exist (prevent boom on initial installation)
parent e70303df
...@@ -118,7 +118,7 @@ function log_environ ($message, $escape=true, $backtrace=true) { ...@@ -118,7 +118,7 @@ function log_environ ($message, $escape=true, $backtrace=true) {
*/ */
function log_message ($message, $loglevel, $escape, $backtrace, $file=null, $line=null, $trace=null) { function log_message ($message, $loglevel, $escape, $backtrace, $file=null, $line=null, $trace=null) {
global $SESSION; global $SESSION;
if (!$SESSION) { if (!$SESSION && function_exists('get_config')) {
require_once(get_config('docroot') . 'auth/lib.php'); require_once(get_config('docroot') . 'auth/lib.php');
$SESSION = Session::singleton(); $SESSION = Session::singleton();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment