diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 59f84a6079..b297ec505d 100755 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -6573,21 +6573,11 @@ class learnpath { $item_title = stripslashes($extra_info['title']); $item_description = stripslashes($extra_info['description']); $item_url = stripslashes($extra_info['url']); - } - elseif (is_numeric($extra_info)) { - $sql_link = " - SELECT - title, - description, - url - FROM " . $tbl_link . " - WHERE id = " . $extra_info; - + } elseif (is_numeric($extra_info)) { + $sql_link = "SELECT title, description, url FROM " . $tbl_link . " WHERE id = " . $extra_info; $result = Database::query($sql_link); $row = Database :: fetch_array($result); - - $item_title = $row['title']; - + $item_title = $row['title']; $item_description = $row['description']; $item_url = $row['url']; } else { @@ -6604,12 +6594,7 @@ class learnpath { else $parent = 0; - $sql = " - SELECT * - FROM " . $tbl_lp_item . " - WHERE - lp_id = " . $this->lp_id; - + $sql = "SELECT * FROM " . $tbl_lp_item . " WHERE lp_id = " . $this->lp_id; $result = Database::query($sql); $arrLP = array (); @@ -6657,8 +6642,8 @@ class learnpath { $return .= ''; $return .= ''; $return .= ''; - $return .= "\t\t\t\t" . ''; + $return .= ''; $arrHide = array ( $id ); @@ -6703,7 +6688,7 @@ class learnpath { $return .= ''; } } - $return .= "\t\t\t\t" . ''; + $return .= ''; $return .= ''; $return .= ''; @@ -7442,9 +7427,9 @@ class learnpath { } } $return .= $this->write_resources_tree($resources_sorted); - if (Database :: num_rows($res_doc) == 0) { + /*if (Database :: num_rows($res_doc) == 0) { $return .= '
' . get_lang('NoDocuments') . '
'; - } + }*/ $return .= ''; return $return; } @@ -7554,9 +7539,9 @@ class learnpath { $return .= ''; } - if (Database :: num_rows($res_quiz) == 0) { + /*if (Database :: num_rows($res_quiz) == 0) { $return .= '
' . get_lang('NoExercisesAvailable') . '
'; - } + }*/ $return .= ''; return $return; @@ -7592,9 +7577,9 @@ class learnpath { $return .= ''; } - if (Database :: num_rows($res_link) == 0) + /*if (Database :: num_rows($res_link) == 0) $return .= '
' . get_lang('NoLinksAvailable') . '
'; - + */ $return .= ''; return $return;