From 7eaf4e04e7987bb0fb6b92aecdf9994532cd4b26 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Fri, 12 May 2023 12:13:28 +0200 Subject: [PATCH] fix regression from a2a499c2d267561f1a445ffe02a8a5b5f96cf4c0, re #1750 --- lib/seminar_open.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/seminar_open.php b/lib/seminar_open.php index e84a429d9d6..a381d58d1d1 100644 --- a/lib/seminar_open.php +++ b/lib/seminar_open.php @@ -175,6 +175,7 @@ if (!Request::isXhr() && $perm->have_perm('root')) { ); $migrations = $migrator->relevantMigrations(null); + $_SESSION['migration-check'] = [ 'disabled' => $_SESSION['migration-check']['disabled'] ?? false, 'timestamp' => time(), @@ -186,7 +187,7 @@ if (!Request::isXhr() && $perm->have_perm('root')) { $_SESSION['migration-check']['disabled'] = true; } - if (!empty($_SESSION['migration-check']['disabled']) + if (empty($_SESSION['migration-check']['disabled']) && $_SESSION['migration-check']['count'] > 0 ) { $info = sprintf( -- GitLab