About Page: Suppress the `MigrationManager` exception
This commit is contained in:
parent
2864e60d78
commit
9f14c32b71
application/views/scripts/about
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue