Commit 72b37973 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warning on import when ->log_file unset



Change-Id: Ifd4579789e6fdd8f82e35f0e98c8b9f6401825eb
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent f0287e08
......@@ -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