Commit b6c2a212 authored by Nigel McNie's avatar Nigel McNie

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 04a69ce8
......@@ -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) {
global $SESSION;
if (!$SESSION) {
if (!$SESSION && function_exists('get_config')) {
require_once(get_config('docroot') . 'auth/lib.php');
$SESSION = Session::singleton();
}
......
Markdown is supported
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