Make sure the returned value is correct type

[MAILPOET-2716]
This commit is contained in:
Pavel Dohnal
2020-04-22 11:41:25 +02:00
committed by Veljko V
parent 6dcf494e6d
commit 6b5c0b706f

View File

@ -38,6 +38,9 @@ class AssetsController {
echo '<script src="' . self::RECAPTCHA_API_URL . '" async defer></script>';
$scripts = ob_get_contents();
ob_end_clean();
if ($scripts === false) {
return '';
}
return $scripts;
}