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 .= '