membersince: fix php error warning

This commit is contained in:
rabuzarus 2018-02-08 18:09:13 +01:00
parent a307bf472e
commit 4b2106512f

View file

@ -25,8 +25,11 @@ function membersince_display(&$a, &$b)
{
if (current_theme() == 'frio') {
// Works in Frio.
$html = '<!DOCTYPE html><html><body>' . $b .'</body></html>';
$doc = new DOMDocument();
$doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8'));
$doc->validateOnParse = true;
@$doc->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));
$elm = $doc->getElementById('aprofile-fullname');