diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index df5e4c6d60..998490387a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-04-24 Miguel de Dios + + * operation/users/user_edit.php: fixed the call to function from + enterprise in the open source installations. + + Fixes: #3611329 + 2013-04-24 Miguel de Dios * include/functions_reporting.php, include/functions_servers.php: diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index e1ae690ff5..85004c9292 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -288,27 +288,27 @@ if (!$meta) { $data[0] = __('Shortcut bar') . ui_print_help_tip(__('This will activate a shortcut bar with alerts, events, messages... information'), true); $data[1] = __('Home screen'). ui_print_help_tip(__('User can customize the home page. By default, will display \'Agent Detail\'. Example: Select \'Other\' and type sec=estado&sec2=operation/agentes/estado_agente to show agent detail view'), true); // User only can change skins if has more than one group - if (count($usr_groups) > 1) { - $data[2] = __('Skin'); - } - else { - $data[2] = ''; + $data[2] = ''; + if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + $data[2] = __('Skin'); + } } $table->rowclass[] = ''; $table->rowstyle[] = 'font-weight: bold;'; $table->data[] = $data; - + $data = array(); $data[0] = html_print_checkbox('shortcut_bar', 1, $user_info["shortcut"], true); $values = array ('Default' =>__('Default'), 'Dashboard'=>__('Dashboard'), 'Visual console'=>__('Visual console'), 'Event list'=>__('Event list'), 'Group view'=>__('Group view'), 'Tactical view'=>__('Tactical view'), 'Alert detail' => __('Alert detail'), 'Other'=>__('Other')); $data[1] = html_print_select($values, 'section', io_safe_output($user_info["section"]), 'show_data_section();', '', -1, true, false, false); // User only can change skins if has more than one group - if (count($usr_groups) > 1) { - $data[2] = skins_print_select($id_usr,'skin', $user_info['id_skin'], '', __('None'), 0, true); - } - else { - $data[2] = ''; + $data[2] = ''; + if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + $data[2] = skins_print_select($id_usr,'skin', $user_info['id_skin'], '', __('None'), 0, true); + } } $table->rowclass[] = ''; $table->rowstyle[] = '';