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
This commit is contained in:
FusionPBX 2023-06-02 10:34:42 -06:00 committed by GitHub
parent 237b11705a
commit 7f16f52b8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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