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 67bf0de
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) {
// don't throw
}
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 67bf0de

Please sign in to comment.