renderer: Fixed notice in PostTransformer for older data without 'withLayout' property [MAILPOET-1409]

This commit is contained in:
Rostislav Wolny
2018-06-08 16:58:28 +02:00
parent 9521134376
commit 62fd56400b

View File

@@ -17,7 +17,7 @@ class PostTransformer {
function __construct($args) { function __construct($args) {
$this->args = $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'; $this->image_position = 'left';
} }