Make sure the returned value is correct type
[MAILPOET-2716]
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user