Fix undefined spacing warning

This commit is contained in:
Mike Jolley
2024-04-08 12:43:04 +01:00
committed by Rostislav Wolný
parent b25335c2cb
commit 3ec36064ab
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ class Renderer {
$layout = $this->settingsController->getLayout();
$themeStyles = $this->settingsController->getEmailStyles();
$width = $layout['contentSize'];
$padding = $themeStyles['spacing']['padding'];
$paddingTop = $themeStyles['spacing']['padding']['top'] ?? '0px';
$paddingBottom = $themeStyles['spacing']['padding']['bottom'] ?? '0px';
$contentBackground = $themeStyles['color']['background']['content'];
$layoutBackground = $themeStyles['color']['background']['layout'];
$contentFontFamily = $themeStyles['typography']['fontFamily'];