Skip to content

Commit

Permalink
About Page: Suppress the MigrationManager exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 authored and nilmerg committed Nov 4, 2024
1 parent 2864e60 commit 9f14c32
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion application/views/scripts/about/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 9f14c32

Please sign in to comment.