Skip to content

Commit

Permalink
fix failure counting
Browse files Browse the repository at this point in the history
  • Loading branch information
antedebaas committed Jun 19, 2024
1 parent 7105696 commit 878b7e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Command/GetReportsFromMailboxCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@ private function open_mailbox(ConnectionInterface $ci_mailbox): GetReportsRespon

if($failed == true) {
$failedReports = 0;
foreach ($details['reports'] as $reports) {
foreach($reports as $report) {
if($report->getSuccess() == false) {
$failedReports++;
}
foreach ($details['reports'] as $report) {
if($report->getSuccess() == false) {
$failedReports++;
}
}

Expand Down Expand Up @@ -526,6 +524,8 @@ private function process_sts_report(MailReportResponse $report): bool
return true;
} catch (\Exception $e) {
return false;
} catch (\Error $e) {
return false;
}
}
}

0 comments on commit 878b7e9

Please sign in to comment.