mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-20 07:17:02 +00:00
membersince: fix php error warning
This commit is contained in:
parent
a307bf472e
commit
4b2106512f
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue