From 034da214c01298281684ac5de01cc0b0307baec8 Mon Sep 17 00:00:00 2001 From: Faustin Date: Sat, 10 Sep 2022 14:14:15 +0200 Subject: [PATCH] scrutinizer in takepos/send.php : string[] implicitely converted to a boolean --- htdocs/takepos/send.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/takepos/send.php b/htdocs/takepos/send.php index 2003abaf1f1..918c218ad95 100644 --- a/htdocs/takepos/send.php +++ b/htdocs/takepos/send.php @@ -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();