From 493047ae40bd19813d9aebd9c05a43f43ce6af2d Mon Sep 17 00:00:00 2001 From: marcos Date: Wed, 16 Jun 2021 14:17:45 +0200 Subject: [PATCH] fixed visual error --- pandora_console/include/functions_config.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 326b725e43..1d1a127806 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -3400,7 +3400,7 @@ function config_user_set_custom_config() } } - if ((isset($userinfo['id_skin']) && $userinfo['id_skin'] !== 0)) { + if ((isset($userinfo['id_skin']) && (int) $userinfo['id_skin'] !== 0)) { if ((int) $userinfo['id_skin'] === 1) { $config['style'] = 'pandora'; } @@ -3416,12 +3416,10 @@ function config_user_set_custom_config() if ($sec2_aux != 'godmode/groups/group_list' && $skin !== false) { $id_user_aux = get_parameter('id'); if ($id_user_aux == $config['id_user']) { - if ((int) $skin === 1 || (int) $skin === 0) { - $config['style'] = 'pandora'; - } - - if ((int) $skin === 2) { + if ($config['style'] === 'pandora_black' && (int) $skin === 0 || (int) $skin === 2) { $config['style'] = 'pandora_black'; + } else if ((int) $skin === 1 || (int) $skin === 0) { + $config['style'] = 'pandora'; } } }