Эх сурвалжийг харах

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
FusionPBX 2 жил өмнө
parent
commit
d38a42058a

+ 1 - 1
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