Fix on possible use of an undefined value as an ARRAY reference. Thanks to Paul Brown for the report.

This commit is contained in:
Gilles Darold 2020-08-11 09:51:38 +02:00
parent 76fac1a494
commit cac568f122

View file

@ -2632,7 +2632,7 @@ sub flush_data
}
}
# Complete Spam information
if (exists $SPAM{$host}{$id} && !exists $SPAM{$host}{$id}{to}) {
if (exists $SPAM{$host}{$id} && !exists $SPAM{$host}{$id}{to} && exists $TO{$host}{$id}{to}) {
push(@{$SPAM{$host}{$id}{to}}, @{$TO{$host}{$id}{to}});
}
}