Skip to content

Commit

Permalink
Fix notice error about no buffer to flush
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Sep 19, 2023
1 parent 5b9ac20 commit 87470e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Mosaico/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ public static function sendImage(string $file) {
header("Content-type:" . $mime_type);

readfile($file);
ob_flush();
if (ob_get_length()) {
ob_flush();
}
flush();
}

Expand Down

0 comments on commit 87470e4

Please sign in to comment.