#10665 fixed error 500 in user edit view

This commit is contained in:
Daniel Cebrian 2023-03-13 18:07:04 +01:00
parent fa2918e8ed
commit 721d7eaff9
2 changed files with 10 additions and 7 deletions

View File

@ -1271,10 +1271,12 @@ if ($new_user) {
if (is_metaconsole() === false) { if (is_metaconsole() === false) {
// User only can change skins if has more than one group. // User only can change skins if has more than one group.
if (count($usr_groups) > 1) { if (function_exists('skins_print_select')) {
if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) { if (count($usr_groups) > 1) {
$skin = '<div class="label_select"><p class="edit_user_labels">'.__('Skin').'</p>'; if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) {
$skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'</div>'; $skin = '<div class="label_select"><p class="edit_user_labels">'.__('Skin').'</p>';
$skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'</div>';
}
} }
} }
} }

View File

@ -563,9 +563,10 @@ $userManagementTable->data['fields_lang_colorscheme'][0] = html_print_select_fro
'default', 'default',
true true
); );
if (function_exists('skins_print_select')) {
$userManagementTable->data['captions_lang_colorscheme'][1] = __('User color scheme'); $userManagementTable->data['captions_lang_colorscheme'][1] = __('User color scheme');
$userManagementTable->data['fields_lang_colorscheme'][1] = skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true); $userManagementTable->data['fields_lang_colorscheme'][1] = skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true);
}
$userManagementTable->rowclass['captions_blocksize_eventfilter'] = 'field_half_width'; $userManagementTable->rowclass['captions_blocksize_eventfilter'] = 'field_half_width';
$userManagementTable->rowclass['fields_blocksize_eventfilter'] = 'field_half_width'; $userManagementTable->rowclass['fields_blocksize_eventfilter'] = 'field_half_width';