Skip to content

Commit

Permalink
- adding check before flush buffer (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopucci committed Jan 1, 2024
1 parent e26e6f3 commit a88103a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions install/tools/5-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
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) {
Expand Down
6 changes: 4 additions & 2 deletions install/tools/7-finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
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'])) {
Expand Down

0 comments on commit a88103a

Please sign in to comment.