diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php b/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php index 794f4c760..e073363b3 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php @@ -22,10 +22,7 @@ abstract class HtmlUtils */ public static function BuildHtml(string $sHtml, array &$aFoundCids, array &$aFoundDataURL, array &$aFoundContentLocationUrls) : string { - $bState = true; - if (\MailSo\Base\Utils::FunctionCallable('libxml_use_internal_errors')) { - $bState = \libxml_use_internal_errors(true); - } + $bState = \libxml_use_internal_errors(true); $sHtml = \str_replace('', '', $sHtml); $sHtml = \str_replace('', '', $sHtml); @@ -89,9 +86,7 @@ abstract class HtmlUtils \libxml_clear_errors(); } - if (\MailSo\Base\Utils::FunctionCallable('libxml_use_internal_errors')) { - \libxml_use_internal_errors($bState); - } + \libxml_use_internal_errors($bState); $sHtml = ''; $oBody = $oDoc->getElementsByTagName('body')->item(0);