Commit 7df2ec7c authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(audit) Avoid crash when auditEvent author is not found

issue #5815
parent 928ddfd0
......@@ -37,7 +37,11 @@ class UserLinkAttribute extends DisplayLDAPAttribute
{
function renderFormInput ()
{
return objects::link($this->value, 'user');
try {
return objects::link($this->value, 'user');
} catch (NonExistingLdapNodeException $e) {
return '<a><img src="geticon.php?context=status&amp;icon=dialog-warning&amp;size=16" alt="warning" class="center"/>&nbsp;'.sprintf(_('Unknown user: %s'), $this->value).'</a>';
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment