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:
parent
237b11705a
commit
7f16f52b8a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue