Browse Source

Fix add missing variable

Angel Fernando Quiroz Campos 6 years ago
parent
commit
61f08ace85
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main/lp/scorm.class.php

+ 2 - 0
main/lp/scorm.class.php

@@ -100,6 +100,8 @@ class scorm extends learnpath
             $crawler = new Crawler();
             $crawler->addXmlContent($xml);
 
+            $xmlErrors = libxml_get_errors();
+
             if (!empty($xmlErrors)) {
                 if ($this->debug > 0) {
                     error_log('New LP - In scorm::parse_manifest() - Exception thrown when loading '.$file.' in DOMDocument');