From aeff8af5f525236031ae70fc26e516ed3e709fd4 Mon Sep 17 00:00:00 2001 From: Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com> Date: Mon, 27 May 2024 14:25:53 -0300 Subject: [PATCH] PHP 8 Warning fix on ODT export --- helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.php b/helper.php index 6fc2cc5..27bf579 100644 --- a/helper.php +++ b/helper.php @@ -666,7 +666,7 @@ function renderODTOpenTable ($renderer, $attr, $style, $attr_string) { $css_properties ['display'] = 'printer'; } - $background_color = $css_properties ['background-color']; + $background_color = $css_properties ['background-color'] ?? null; $image = $css_properties ['background-image'] ?? null; $margin_top = $css_properties ['margin-top']; $margin_right = $css_properties ['margin-right'];