Skip to content

Commit 558b043

Browse files
committed
Resolved compatibility issues pertaining to the latest version of PHP
1 parent b035945 commit 558b043

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

page.did.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@
9393
$EXTorUSER = _("Extension");
9494
}
9595
$result = core_users_get($did_dest[1]);
96-
$label = '<span><img width="16" height="16" border="0" title="'.sprintf(_("Edit %s"),$EXTorUSER).'" alt="" src="images/user_edit.png"/>&nbsp;'.sprintf(_("Edit %s %s (%s)"),$EXTorUSER, $did_dest[1],$result['name']).'</span>';
96+
$name = $result['name'] ?? '';
97+
$label = '<span><img width="16" height="16" border="0" title="'.sprintf(_("Edit %s"),$EXTorUSER).'" alt="" src="images/user_edit.png"/>&nbsp;'.sprintf(_("Edit %s %s (%s)"),$EXTorUSER, $did_dest[1],$name).'</span>';
9798
$link= "<p><a href=".$editURL.">".$label."</a></p>";
9899
$formdata['userlink'] = $link;
99100
}

0 commit comments

Comments
 (0)