Update css.php

This commit is contained in:
FusionPBX 2024-09-03 14:18:05 -06:00 committed by GitHub
parent 5f36a746d5
commit c533b7dd22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -321,11 +321,11 @@ if (!empty($_SESSION['username'])) {
}
//logged in - use standard background colors
if (isset($_SESSION['theme']['background_color_enabled']['boolean']) && !empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled'] == 'true' && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
if (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
$background_colors[0] = $_SESSION['theme']['background_color'][0];
$background_colors[1] = $_SESSION['theme']['background_color'][1];
}
elseif (isset($_SESSION['theme']['background_color_enabled']['boolean']) && !empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled'] == 'true' && !empty($_SESSION['theme']['background_color'][0])) {
elseif (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0])) {
$background_colors[0] = $_SESSION['theme']['background_color'][0];
}
}
@ -350,11 +350,11 @@ else {
elseif (!empty($_SESSION['theme']['login_background_color']) && !empty($_SESSION['theme']['login_background_color'][0])) {
$background_colors[0] = $_SESSION['theme']['login_background_color'][0];
}
elseif ($_SESSION['theme']['background_color_enabled'] && $_SESSION['theme']['background_color_enabled'] == 'true' && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
elseif (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
$background_colors[0] = $_SESSION['theme']['background_color'][0];
$background_colors[1] = $_SESSION['theme']['background_color'][1];
}
elseif ($_SESSION['theme']['background_color_enabled'] && $_SESSION['theme']['background_color_enabled'] == 'true' && !empty($_SESSION['theme']['background_color'][0])) {
elseif (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0])) {
$background_colors[0] = $_SESSION['theme']['background_color'][0];
}
}