From 6b5c0b706fb0bff9df79d8d91efbee9012fa2925 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Wed, 22 Apr 2020 11:41:25 +0200 Subject: [PATCH] Make sure the returned value is correct type [MAILPOET-2716] --- lib/Form/AssetsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Form/AssetsController.php b/lib/Form/AssetsController.php index b272db02d0..aac251f14c 100644 --- a/lib/Form/AssetsController.php +++ b/lib/Form/AssetsController.php @@ -38,6 +38,9 @@ class AssetsController { echo ''; $scripts = ob_get_contents(); ob_end_clean(); + if ($scripts === false) { + return ''; + } return $scripts; }