2
0
mirror of https://github.com/slawkens/myaac.git synced 2025-05-03 20:59:20 +02:00

- adding check before flush buffer ()

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

@ -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) {

@ -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'])) {