Skip to content

Commit

Permalink
Update Chromium.php
Browse files Browse the repository at this point in the history
fix bug if no chromiumSettings available
  • Loading branch information
storbahn authored and mattamon committed Aug 28, 2024
1 parent f0c3ae1 commit d18a09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Processor/Chromium.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit d18a09b

Please sign in to comment.