1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

check that an attribute is defined and not just non-zero

(This used to be commit 8c18174a899e9578e0e82d17c7602e84b342644c)
This commit is contained in:
Gerald Carter 2003-06-12 13:41:13 +00:00
parent 098fea0fa8
commit b93851af13

View File

@ -93,7 +93,7 @@ while ( !$ldif->eof ) {
foreach $key ( keys %attr_map ) {
if ( $entry->get_value($key) ) {
if ( defined($entry->get_value($key)) ) {
$entry->add( $attr_map{$key} => $entry->get_value($key) );
$entry->delete( $key );
}