From 7f16f52b8ac724421b676b25d4591681f4d002e8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 2 Jun 2023 10:34:42 -0600 Subject: [PATCH] Correct the logic to use color 2 if 1 is empty In the array the color 1 is represented with 0 and color 2 is represented with 1 --- themes/default/css.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/css.php b/themes/default/css.php index ef8efbf73f..8622725ff5 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -419,7 +419,7 @@ else if (!empty($background_colors[0]) || !empty($background_colors[1])) { //bac if (!empty($background_colors[0]) && empty($background_colors[1])) { // use color 1 $background_color = "background: ".$background_colors[0].";"; } - else if (!empty($background_colors[0]) && !empty($background_colors[1])) { // use color 2 + else if (empty($background_colors[0]) && !empty($background_colors[1])) { // use color 2 $background_color = "background: ".$background_colors[1].";"; } else if (!empty($background_colors[0]) && !empty($background_colors[1]) && isset($_SESSION['theme']['background_radial_gradient']['text'])) { // radial gradient