author | Mahlon E. Smith <mahlon@martini.nu> |
Tue, 06 Sep 2011 15:59:10 -0700 | |
changeset 23 | 2ab2df609cc7 |
parent 22 | 8c212bdb221b |
child 24 | 3a8ae9117981 |
--- a/shelldap Sat Mar 05 19:41:07 2011 +0100 +++ b/shelldap Tue Sep 06 15:59:10 2011 -0700 @@ -624,9 +624,9 @@ $conf->{'basedn'} = $namingContexts[0]; $self->{'base'} = $namingContexts[0]; } - if ( @_ ) { - my $base = canonical_dn($_[0], casefold => 'none'); - $self->{'base'} = $base if ($base); + if ( $_[0] ) { + my $base = canonical_dn( $_[0], casefold => 'none' ); + $self->{'base'} = $base if $base; } return $self->{'base'}; }