|
|
|
@ -53,10 +53,6 @@ $_SESSION['oLP']->get_js_dropdown_array(). |
|
|
|
|
|
|
|
|
|
$is_allowed_to_edit = api_is_allowed_to_edit(null, true); |
|
|
|
|
|
|
|
|
|
$tbl_lp = Database::get_course_table(TABLE_LP_MAIN); |
|
|
|
|
$tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM); |
|
|
|
|
$tbl_lp_view = Database::get_course_table(TABLE_LP_VIEW); |
|
|
|
|
|
|
|
|
|
$isStudentView = isset($_REQUEST['isStudentView']) ? (int) $_REQUEST['isStudentView'] : ''; |
|
|
|
|
$learnpath_id = (int) $_REQUEST['lp_id']; |
|
|
|
|
$submit = isset($_POST['submit_button']) ? $_POST['submit_button'] : ''; |
|
|
|
@ -68,8 +64,7 @@ if ((!$is_allowed_to_edit) || ($isStudentView)) { |
|
|
|
|
// From here on, we are admin because of the previous condition, so don't check anymore. |
|
|
|
|
|
|
|
|
|
$course_id = api_get_course_int_id(); |
|
|
|
|
$sql = "SELECT * FROM $tbl_lp |
|
|
|
|
WHERE c_id = $course_id AND id = $learnpath_id"; |
|
|
|
|
$sql = "SELECT * FROM $tbl_lp WHERE iid = $learnpath_id"; |
|
|
|
|
|
|
|
|
|
$result = Database::query($sql); |
|
|
|
|
$therow = Database::fetch_array($result); |
|
|
|
|