瀏覽代碼

Fix add missing variable

Angel Fernando Quiroz Campos 6 年之前
父節點
當前提交
61f08ace85
共有 1 個文件被更改,包括 2 次插入0 次删除
  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');