Remove unnecessary condition for background styles render

[MAILPOET-3005]
This commit is contained in:
Rostislav Wolny
2020-07-06 10:54:33 +02:00
committed by Veljko V
parent fa13ff961b
commit 56dbf5bec1

View File

@@ -12,7 +12,7 @@ class Columns {
if (isset($params['text_color'])) { if (isset($params['text_color'])) {
$styles[] = "color:{$params['text_color']};"; $styles[] = "color:{$params['text_color']};";
} }
if (isset($params['background_color']) && !isset($params['gradient'])) { if (!empty($params['background_color'])) {
$styles[] = "background-color:{$params['background_color']};"; $styles[] = "background-color:{$params['background_color']};";
} }
if (isset($params['gradient'])) { if (isset($params['gradient'])) {