From 1d860420b85241058ece9f388c2e396fb5cccf06 Mon Sep 17 00:00:00 2001 From: Calvo Date: Mon, 3 Jan 2022 16:10:36 +0100 Subject: [PATCH] Fix error message when update skin --- pandora_console/operation/users/user_edit.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index 6c93b10a71..0a682d3046 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -186,6 +186,8 @@ if (isset($_GET['modified']) && !$view_mode) { } else { if (!empty($password_new) && !empty($password_confirm)) { $success_msg = __('Password successfully updated'); + } else if ($upd_info['id_skin'] !== $user_info['id_skin']) { + $success_msg = __('Skin successfully updated'); } else { $return = false; $error_msg = __('No changes have been made'); @@ -549,13 +551,13 @@ $table_ichanges = '
'.html_print_image( - 'images/darrowright_green.png', - true, - [ - 'id' => 'right_autorefreshlist', - 'alt' => __('Push selected pages into autorefresh list'), - 'title' => __('Push selected pages into autorefresh list'), - ] + 'images/darrowright_green.png', + true, + [ + 'id' => 'right_autorefreshlist', + 'alt' => __('Push selected pages into autorefresh list'), + 'title' => __('Push selected pages into autorefresh list'), + ] ).' '.html_print_image( 'images/darrowleft_green.png',