Skip to content

Commit

Permalink
Mitigate error of empty text modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Aug 16, 2023
1 parent 3ef9c7d commit 53cca71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Module/Text/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function init()

public function data() : array
{
return $this->getFields();
return $this->getFields() ?? [];
}

public function template()
Expand Down

0 comments on commit 53cca71

Please sign in to comment.