Fix move lp item - refs BT#14334

pull/2543/head
Angel Fernando Quiroz Campos 8 years ago committed by GitHub
parent 90920908c9
commit 249b64cf20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      main/lp/lp_move_item.php

@ -68,10 +68,6 @@ 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 iid = $learnpath_id";
$result = Database::query($sql);
$therow = Database::fetch_array($result);
/*
Course admin section
@ -91,7 +87,7 @@ $interbreadcrumb[] = [
];
$interbreadcrumb[] = [
'url' => api_get_self()."?action=build&lp_id=$learnpath_id&".api_get_cidreq(),
'name' => stripslashes("{$therow['name']}"),
'name' => stripslashes($learnPath->get_name()),
];
$interbreadcrumb[] = [
'url' => api_get_self()."?action=add_item&type=step&lp_id=$learnpath_id&".api_get_cidreq(),

Loading…
Cancel
Save