From d18a09bc07179b3bc14dc6e923dd1fdb793c6841 Mon Sep 17 00:00:00 2001 From: storbahn Date: Fri, 16 Aug 2024 17:33:38 +0200 Subject: [PATCH] Update Chromium.php fix bug if no chromiumSettings available --- src/Processor/Chromium.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Processor/Chromium.php b/src/Processor/Chromium.php index b09ca7d..157f8df 100644 --- a/src/Processor/Chromium.php +++ b/src/Processor/Chromium.php @@ -33,7 +33,7 @@ class Chromium extends Processor protected function buildPdf(PrintAbstract $document, object $config): string { $web2printConfig = Config::getWeb2PrintConfig(); - $chromiumConfig = $web2printConfig['chromiumSettings']; + $chromiumConfig = $web2printConfig['chromiumSettings'] ?? ''; $chromiumConfig = json_decode($chromiumConfig, true); $params = [