diff --git a/lib/seminar_open.php b/lib/seminar_open.php index e84a429d9d6b507de9155b7d830fd3140869d33d..a381d58d1d1220c7cb7079ce8167f42c95cf2f26 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(