Fix some php warning (#30753)

* Fix php warning on send email

* Fix php warning on getTotalWeightVolume when no lines.

* Fix totalOrdered totalToShip should be int
This commit is contained in:
Francis Appels
2024-08-27 04:52:47 +02:00
committed by GitHub
parent c03617d5b7
commit a8ddeff35c
2 changed files with 4 additions and 10 deletions

View File

@@ -579,7 +579,7 @@ class CMailFile
if (!empty($this->atleastonefile)) {
foreach ($filename_list as $i => $val) {
$content = file_get_contents($filename_list[$i]);
$smtps->setAttachment($content, $mimefilename_list[$i], $mimetype_list[$i], $cid_list[$i]);
$smtps->setAttachment($content, $mimefilename_list[$i], $mimetype_list[$i], (empty($cid_list[$i]) ? '' : $cid_list[$i]));
}
}