diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php
index 2388969585..9411469437 100755
--- a/main/newscorm/learnpath.class.php
+++ b/main/newscorm/learnpath.class.php
@@ -8549,9 +8549,8 @@ class learnpath
';
foreach ($a_forums as $forum) {
- $return .= '
';
- $a_threads = get_threads($forum['forum_id']);
- if (is_array($a_threads)) {
- foreach ($a_threads as $thread) {
- $return .= '
';
- $return .= ' ';
- $return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
- $return .= ' ';
- $return .= Display::return_icon('forumthread.png', get_lang('Thread'), array(), ICON_SIZE_TINY);
- $return .= '' . Security :: remove_XSS($thread['thread_title']) . '';
- $return .= '';
+ $return .= '
';
+ $a_threads = get_threads($forum['forum_id']);
+ if (is_array($a_threads)) {
+ foreach ($a_threads as $thread) {
+ $return .= '
';
+ $return .= ' ';
+ $return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
+ $return .= ' ';
+ $return .= Display::return_icon('forumthread.png', get_lang('Thread'), array(), ICON_SIZE_TINY);
+ $return .= '' .
+ Security :: remove_XSS($thread['thread_title']) . '';
+ $return .= '';
+ }
}
+ $return .= '
';
}
- $return .= '
';
}
$return .= '';
+
return $return;
}
diff --git a/main/newscorm/lp_ajax_save_objectives.php b/main/newscorm/lp_ajax_save_objectives.php
index 31b7396f53..70e4ef82fe 100755
--- a/main/newscorm/lp_ajax_save_objectives.php
+++ b/main/newscorm/lp_ajax_save_objectives.php
@@ -7,9 +7,7 @@
* @package chamilo.learnpath
* @author Yannick Warnier