Minor - format code

pull/3016/head
Julio Montoya 5 years ago
parent 512f39e5e6
commit 30f43b5089
  1. 6
      main/admin/access_url_add_courses_to_url.php
  2. 1
      main/exercise/upload_exercise.php
  3. 2
      main/inc/lib/urlmanager.lib.php

@ -23,8 +23,6 @@ if (!api_get_multiple_access_url()) {
$first_letter_course = '';
$courses = [];
$url_list = [];
$users = [];
$tbl_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL);
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
@ -50,10 +48,6 @@ if (isset($_POST['form_sent']) && $_POST['form_sent']) {
$url_list = is_array($_POST['url_list']) ? $_POST['url_list'] : [];
$first_letter_course = $_POST['first_letter_course'];
foreach ($users as $key => $value) {
$users[$key] = intval($value);
}
if ($form_sent == 1) {
if (count($courses) == 0 || count($url_list) == 0) {
echo Display::return_message(get_lang('At least one course and one URL'), 'error');

@ -6,7 +6,6 @@ use ChamiloSession as Session;
/**
* Upload quiz: This script shows the upload quiz feature.
*/
$help_content = 'exercise_upload';
require_once __DIR__.'/../inc/global.inc.php';

@ -123,7 +123,7 @@ class UrlManager
}
/**
* @param string $urlId
* @param int $urlId
*
* @return int
*/

Loading…
Cancel
Save