Skip to content

Commit

Permalink
Fix missing message on upload message request after failure creates a…
Browse files Browse the repository at this point in the history
… warning

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 11, 2021
1 parent 9f5e09d commit 4d4acee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Controllers/ImportStatusController.php
Expand Up @@ -54,7 +54,7 @@ public function index(): void
$maximumTime = ini_get('max_execution_time');
$timestamp = time();
// wait until message is available
while ($_SESSION['Import_message']['message'] == null) {
while (($_SESSION['Import_message']['message'] ?? null) == null) {
// close session before sleeping
session_write_close();
// sleep
Expand Down

0 comments on commit 4d4acee

Please sign in to comment.