# HG changeset patch # User Mahlon E. Smith # Date 1315350334 25200 # Node ID 3e5572aeee5546f463e59e8b9ccdf7b6883bbbf0 # Parent 40c3719c87d416a879db39242a4979e9fef63d1e Make sure the hasSubordinates attribute is defined before checking its value. diff -r 40c3719c87d4 -r 3e5572aeee55 shelldap --- a/shelldap Tue Sep 06 16:05:31 2011 -0700 +++ b/shelldap Tue Sep 06 16:05:34 2011 -0700 @@ -1513,7 +1513,8 @@ # 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 #