Commit c7d6282f authored by Côme Chilliet's avatar Côme Chilliet

Merge branch...

Merge branch '5815-dans-le-plug-in-audit-quand-je-clique-sur-une-ligne-du-type-fake-dn-j-obtiens-un-erreur-php' into '1.3-dev'

Resolve "Dans le plug-in audit, quand je clique sur une ligne du type "fake-dn" j'obtiens un erreur PHP"

See merge request fusiondirectory/fd-plugins!221
parents 928ddfd0 7df2ec7c
......@@ -37,7 +37,11 @@ class UserLinkAttribute extends DisplayLDAPAttribute
{
function renderFormInput ()
{
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