if ($negated) {
print $p . "Direktive 'create' wird in '$wo' enfernt.\n" if verbose() > 5;
- delete $self->{$wo}{'create'} = if exists $self->{$wo}{'create'};
+ $self->{$wo}{'create'} = undef;
return 1;
}
if ($negated) {
print $p . "Direktive 'olddir' wird in '$wo' enfernt.\n" if verbose() > 5;
- delete $self->{$wo}{'olddir'} = if exists $self->{$wo}{'olddir'};
+ $self->{$wo}{'olddir'} = undef;
return 1;
}
foreach $name ( @{ $self->{'newfile'}{'files'} } ) {
%{ $self->{'logfiles'}{$name} } = %{ $self->{'newfile'} };
- $self->{'logfiles'}{$name}{'create'} = {};
- %{ $self->{'logfiles'}{$name}{'create'} } = %{ $self->{'newfile'}{'create'} };
+ if ( $self->{'newfile'}{'create'} ) {
+ $self->{'logfiles'}{$name}{'create'} = {};
+ %{ $self->{'logfiles'}{$name}{'create'} } = %{ $self->{'newfile'}{'create'} };
+ }
+ else {
+ $self->{'logfiles'}{$name}{'create'} = undef;
+ }
$self->{'logfiles'}{$name}{'olddir'} = {};
if ( defined $self->{'newfile'}{'olddir'} ) {
%{ $self->{'logfiles'}{$name}{'olddir'} } = %{ $self->{'newfile'}{'olddir'} };