- adding check before flush buffer (#245)

This commit is contained in:
Danilo Pucci 2024-01-01 19:31:26 -03:00 committed by slawkens
parent b4448f7279
commit 02adb87fac
2 changed files with 8 additions and 4 deletions

View File

@ -11,8 +11,10 @@ $error = false;
require BASE . 'install/includes/config.php';
ini_set('max_execution_time', 300);
ob_implicit_flush();
ob_end_flush();
if(ob_get_length() > 0) {
ob_implicit_flush();
ob_end_flush();
}
header('X-Accel-Buffering: no');
if(!$error) {

View File

@ -8,8 +8,10 @@ require BASE . 'install/includes/functions.php';
require BASE . 'install/includes/locale.php';
ini_set('max_execution_time', 300);
ob_implicit_flush();
ob_end_flush();
if(ob_get_length() > 0) {
ob_implicit_flush();
ob_end_flush();
}
header('X-Accel-Buffering: no');
/*
if(isset($config['installed']) && $config['installed'] && !isset($_SESSION['saved'])) {