Minor - format code

pull/3883/head
Julio Montoya 5 years ago
parent 477e265e96
commit b05c5be95b
  1. 7
      main/inc/lib/usermanager.lib.php
  2. 8
      main/work/work.php

@ -7101,7 +7101,12 @@ SQL;
}
if (self::userHasCareer($userId, $careerId) === false) {
$params = ['user_id' => $userId, 'career_id' => $careerId, 'created_at' => api_get_utc_datetime(), 'updated_at' => api_get_utc_datetime()];
$params = [
'user_id' => $userId,
'career_id' => $careerId,
'created_at' => api_get_utc_datetime(),
'updated_at' => api_get_utc_datetime(),
];
$table = Database::get_main_table(TABLE_MAIN_USER_CAREER);
Database::insert($table, $params);
}

@ -68,23 +68,23 @@ if (!empty($groupId)) {
$interbreadcrumb[] = ['url' => $url_dir, 'name' => $my_folder_data['title']];
}
if ($action == 'upload_form') {
if ($action === 'upload_form') {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
'name' => get_lang('UploadADocument'),
];
}
if ($action == 'create_dir') {
if ($action === 'create_dir') {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
'name' => get_lang('CreateAssignment'),
];
}
} else {
if ($origin != 'learnpath') {
if ($origin !== 'learnpath') {
if (isset($_GET['id']) &&
!empty($_GET['id']) || $display_upload_form || $action == 'create_dir'
!empty($_GET['id']) || $display_upload_form || $action === 'create_dir'
) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),

Loading…
Cancel
Save