Commit 160acc95 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5195 Undefined index: dn / del_lock()

parent 16283b91
......@@ -715,7 +715,7 @@ function del_lock ($object)
if (!$ldap->success()) {
msg_dialog::display(_('LDAP error'), msgPool::ldaperror($ldap->get_error(), $ldap->getDN(), LDAP_DEL, ERROR_DIALOG));
return;
} elseif ($attrs['dn'] != '') {
} elseif (!empty($attrs['dn'])) {
$ldap->rmdir($attrs['dn']);
}
}
......
Supports Markdown
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