diff --git a/src/Models/Campaign.php b/src/Models/Campaign.php index 3ffac05d..1fa39ba0 100644 --- a/src/Models/Campaign.php +++ b/src/Models/Campaign.php @@ -258,7 +258,7 @@ public function getBounceRatioAttribute() public function getMergedContentAttribute(): ?string { if ($this->template_id) { - return str_replace(['{{content}}', '{{ content }}'], $this->content, $this->template->content); + return str_replace(['{{content}}', '{{ content }}'], $this->content ?? '', $this->template->content); } return $this->content;