From 721d7eaff91b8883fe3ce12613b6031f6a84d056 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 13 Mar 2023 18:07:04 +0100 Subject: [PATCH] #10665 fixed error 500 in user edit view --- pandora_console/godmode/users/configure_user.php | 10 ++++++---- pandora_console/godmode/users/user_management.php | 7 ++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index bb1c5d1c73..eef7062a9d 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -1271,10 +1271,12 @@ if ($new_user) { if (is_metaconsole() === false) { // User only can change skins if has more than one group. - if (count($usr_groups) > 1) { - if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) { - $skin = '

'.__('Skin').'

'; - $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; + if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) { + $skin = '

'.__('Skin').'

'; + $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; + } } } } diff --git a/pandora_console/godmode/users/user_management.php b/pandora_console/godmode/users/user_management.php index cff87aef6f..4e9d48f14e 100644 --- a/pandora_console/godmode/users/user_management.php +++ b/pandora_console/godmode/users/user_management.php @@ -563,9 +563,10 @@ $userManagementTable->data['fields_lang_colorscheme'][0] = html_print_select_fro 'default', true ); - -$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); +if (function_exists('skins_print_select')) { + $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->rowclass['captions_blocksize_eventfilter'] = 'field_half_width'; $userManagementTable->rowclass['fields_blocksize_eventfilter'] = 'field_half_width';