About Page: Suppress the `MigrationManager` exception

This commit is contained in:
Sukhwinder Dhillon 2024-09-17 10:51:11 +02:00 committed by Johannes Meyer
parent 2864e60d78
commit 9f14c32b71
1 changed files with 9 additions and 1 deletions
application/views/scripts/about

View File

@ -96,7 +96,15 @@ use ipl\Web\Widget\StateBadge;
</div>
</div>
<?php $mm = MigrationManager::instance(); if ($mm->hasPendingMigrations()): ?>
<?php
$mm = MigrationManager::instance();
$hasPending = false;
try {
$hasPending = $mm->hasPendingMigrations();
} catch (Throwable $e) {
// suppress
}
if ($hasPending): ?>
<div class="pending-migrations clearfix">
<h2><?= $this->translate('Pending Migrations') ?></h2>
<table class="name-value-table migrations">