Correct array checks

Submitted by:	Emil Barta
This commit is contained in:
Chris Rees 2018-01-21 22:14:47 +00:00
parent eeff194e32
commit 9f1f612973
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459630
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= openwebmail
PORTVERSION= 2.53
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= http://openwebmail.acatysmoof.com/download/release/ \
http://openwebmail.org/openwebmail/download/release/

View File

@ -69,7 +69,7 @@ diff -ruN openwebmail/shares/mailfilter.pl openwebmail-2.53_2/cgi-bin/openwebmai
}
}
- if (!defined @{$r_attachments}) {
+ if (!@{$r_attachments}) {
+ if (!ref{$r_attachments}) {
($header, $body, $r_attachments)=ow::mailparse::parse_rfc822block(\$currmessage);
}
@ -78,7 +78,7 @@ diff -ruN openwebmail/shares/mailfilter.pl openwebmail-2.53_2/cgi-bin/openwebmai
}
}
- if (!defined @{$r_attachments}) {
+ if (!@{$r_attachments}) {
+ if (!ref{$r_attachments}) {
($header, $body, $r_attachments)=ow::mailparse::parse_rfc822block(\$currmessage);
}
# check attachments