From 62fd56400b53cd4bcc2880b8f539b71d3b115b45 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Fri, 8 Jun 2018 16:58:28 +0200 Subject: [PATCH] renderer: Fixed notice in PostTransformer for older data without 'withLayout' property [MAILPOET-1409] --- lib/Newsletter/Editor/PostTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Newsletter/Editor/PostTransformer.php b/lib/Newsletter/Editor/PostTransformer.php index 75ceaa78e4..3578c53391 100644 --- a/lib/Newsletter/Editor/PostTransformer.php +++ b/lib/Newsletter/Editor/PostTransformer.php @@ -17,7 +17,7 @@ class PostTransformer { function __construct($args) { $this->args = $args; - $this->with_layout = (bool)filter_var($args['withLayout'], FILTER_VALIDATE_BOOLEAN); + $this->with_layout = isset($args['withLayout']) ? (bool)filter_var($args['withLayout'], FILTER_VALIDATE_BOOLEAN) : false; $this->image_position = 'left'; }