Merge branch 'ent-8085-cambio-de-skin-muestra-error' into 'develop'

Fix error message when update skin

See merge request artica/pandorafms!4609
This commit is contained in:
Daniel Rodriguez 2022-01-05 12:34:25 +00:00
commit 6ff9c43f34
1 changed files with 9 additions and 7 deletions

View File

@ -186,6 +186,8 @@ if (isset($_GET['modified']) && !$view_mode) {
} else { } else {
if (!empty($password_new) && !empty($password_confirm)) { if (!empty($password_new) && !empty($password_confirm)) {
$success_msg = __('Password successfully updated'); $success_msg = __('Password successfully updated');
} else if ($upd_info['id_skin'] !== $user_info['id_skin']) {
$success_msg = __('Skin successfully updated');
} else { } else {
$return = false; $return = false;
$error_msg = __('No changes have been made'); $error_msg = __('No changes have been made');