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 committed Sep 17, 2024
1 parent acf8795 commit 61a90e2
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 61a90e2

Please sign in to comment.