diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php
index fa7531616c..c03a2c31ae 100755
--- a/main/newscorm/learnpath.class.php
+++ b/main/newscorm/learnpath.class.php
@@ -9534,9 +9534,9 @@ EOD;
$item = $this->items[$item_id];
switch ($item->type) {
case 'document':
- //Getting documents from a LP with chamilo documents
- $file_data = DocumentManager::get_document_data_by_id($item->path, $this->cc);
- $file_path = api_get_path(SYS_COURSE_PATH).$course_data['path'].'/document'.$file_data['path'];
+ // Getting documents from a LP with chamilo documents
+ $fileData = DocumentManager::get_document_data_by_id($item->path, $this->cc);
+ $file_path = api_get_path(SYS_COURSE_PATH).$course_data['path'].'/document'.$fileData['path'];
if (file_exists($file_path)) {
$files_to_export[] = array('title'=>$item->get_title(),'path'=>$file_path);
}
diff --git a/main/newscorm/lp_controller.php b/main/newscorm/lp_controller.php
index 6a804a3504..08008cb24b 100755
--- a/main/newscorm/lp_controller.php
+++ b/main/newscorm/lp_controller.php
@@ -47,8 +47,8 @@ if ($showGlossary) {
var jQueryFrameReadyConfigPath = \'' . api_get_jquery_web_path() . '\';
-->
';
- $htmlHeadXtra[] = '';
- $htmlHeadXtra[] = '';
+ $htmlHeadXtra[] = '';
+ $htmlHeadXtra[] = '';
}
}