Fix warning on php 8.0 "ob_end_clean(): failed to delete buffer. No buffer to delete"
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
d806c17a3d
commit
62197351db
@ -285,7 +285,11 @@ if (isset($_POST['output_format']) && $_POST['output_format'] == 'sendit' && ! $
|
||||
$response->disable();
|
||||
//Disable all active buffers (see: ob_get_status(true) at this point)
|
||||
do {
|
||||
$hasBuffer = @ob_end_clean();
|
||||
if (ob_get_length() > 0) {
|
||||
$hasBuffer = ob_end_clean();
|
||||
} else {
|
||||
$hasBuffer = false;
|
||||
}
|
||||
} while ($hasBuffer);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user