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

Fixes #4380 Fixed syntax error

parent 286ecc5d
......@@ -1199,7 +1199,7 @@ sub migrate_users {
@delete = ('sambaLMPassword','sambaNTPassword','sambaPwdLastSet','sambaBadPasswordCount','sambaBadPasswordTime');
}
}
if ($@delete > 0) {
if (scalar(@delete) > 0) {
$mesg = $ldap->modify($entry->dn(), delete => \@delete );
$mesg->code && print $mesg->error;
}
......
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