Minor - format code

pull/3173/head
Julio Montoya 7 years ago
parent af019248ac
commit 40c68b027b
  1. 5
      main/inc/lib/api.lib.php
  2. 2
      main/work/upload.php

@ -1859,9 +1859,8 @@ function api_get_course_path($course_code = null)
/**
* Gets a course setting from the current course_setting table. Try always using integer values.
*
* @param string The name of the setting we want from the table
* @param string Optional: course code
* @param string $setting_name
* @param string $setting_name The name of the setting we want from the table
* @param string $course_code
*
* @return mixed The value of that setting in that table. Return -1 if not found.
*/

@ -11,7 +11,7 @@ require_once 'work.lib.php';
$this_section = SECTION_COURSES;
$work_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : null;
$work_id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : null;
$is_allowed_to_edit = api_is_allowed_to_edit();
$course_id = api_get_course_int_id();

Loading…
Cancel
Save