forked from extern/egroupware
on InlineImageExists make sure there is at least one attachment
This commit is contained in:
parent
7e00a006d7
commit
e8852dc8f3
@ -1972,7 +1972,7 @@ class PHPMailer {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function InlineImageExists($matchall = false) {
|
public function InlineImageExists($matchall = false) {
|
||||||
$i=0;
|
$i=0;
|
||||||
foreach($this->attachment as $attachment) {
|
foreach($this->attachment as $attachment) {
|
||||||
if ($attachment[6] == 'inline') {
|
if ($attachment[6] == 'inline') {
|
||||||
if ($matchall) {
|
if ($matchall) {
|
||||||
@ -1982,7 +1982,7 @@ class PHPMailer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ($matchall?($i===count($this->attachment)):false);
|
return ($matchall?($i>0 && $i===count($this->attachment)):false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user