Commit da256ff0 authored by Ruslan Kabalin's avatar Ruslan Kabalin Committed by Gerrit Code Review

Merge "Fix warning on import when ->log_file unset"

parents d7353452 72b37973
......@@ -615,7 +615,7 @@ class PluginImportLeap extends PluginImport {
// from trace() itself
global $CFG;
$oldtargets = $CFG->log_dbg_targets;
$oldfile = $CFG->log_file;
$oldfile = isset($CFG->log_file) ? $CFG->log_file : null;
$CFG->log_dbg_targets = $this->logtargets;
$CFG->log_file = $this->logfile;
$file = $line = $trace = null;
......
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