HOR-436-C "Notice</b>: Undefined variable..." SOLVED

This commit is contained in:
Luis Fernando Saisa Lopez
2016-03-11 17:11:42 -04:00
parent 53d60462d4
commit c83022afec
3 changed files with 6 additions and 1 deletions

View File

@@ -30,7 +30,8 @@ class XmlImporter extends Importer
throw new \Exception(\G::LoadTranslation("ID_INVALID_FILE"));
}
$this->dom->load((is_null($filename))? $this->filename : $filename);
$loadFilename = (is_null($filename))? $this->filename : $filename;
$this->dom->loadXml(file_get_contents($loadFilename));
$this->root = $this->dom->documentElement;
// validate version