scrutinizer in takepos/send.php : string[] implicitely converted to a boolean

This commit is contained in:
Faustin 2022-09-10 14:14:15 +02:00
parent 349e33592d
commit 034da214c0

View File

@ -85,7 +85,7 @@ if ($action == "send") {
$sendto = $email;
$from = $mysoc->email;
$mail = new CMailFile($subject, $sendto, $from, $msg, array(), array(), array(), '', '', 0, 1);
if ($mail->error || $mail->errors) {
if ($mail->error || !empty($mail->errors)) {
setEventMessages($mail->error, $mail->errors, 'errors');
} else {
$result = $mail->sendfile();