Make sure the hasSubordinates attribute is defined before checking its
value. FossilOrigin-Name: 812ad96eda973f40ffd403c5125a1a0b963afc93f573e0cf0d34df6629d16db9
This commit is contained in:
parent
0f45e0d058
commit
4708fffff2
1 changed files with 2 additions and 1 deletions
3
shelldap
3
shelldap
|
|
@ -1513,7 +1513,8 @@ sub run_list
|
|||
|
||||
# if this entry is a container for other entries, append a
|
||||
# trailing slash.
|
||||
$dn .= '/' if ($e->get_value('hasSubordinates') eq 'TRUE');
|
||||
$dn .= '/' if $e->get_value('hasSubordinates') &&
|
||||
$e->get_value('hasSubordinates') eq 'TRUE';
|
||||
|
||||
# additional arguments/attributes were given; show their values
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue