Skip to content

Commit

Permalink
Display app_links always (#3664)
Browse files Browse the repository at this point in the history
* Display app_links always

Displays $app_links always, even if $MAILCOW_APPS is empty.

* Removed trailing spaces added by GitHubs editor
  • Loading branch information
TiiFuchs committed Aug 15, 2020
1 parent 107e619 commit 0dfb59e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions data/web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@
<a href="<?= htmlspecialchars($app['link']); ?>" role="button" style="margin-bottom:3pt" title="<?= htmlspecialchars($app['description']); ?>" class="btn btn-primary"><?= htmlspecialchars($app['name']); ?></a>&nbsp;
<?php
}
$app_links = customize('get', 'app_links');
if (!empty($app_links)) {
foreach ($app_links as $row) {
foreach ($row as $key => $val) {
?>
<a href="<?= htmlspecialchars($val); ?>" role="button" style="margin-bottom:3pt" class="btn btn-primary"><?= htmlspecialchars($key); ?></a>&nbsp;
<?php
}
}
$app_links = customize('get', 'app_links');
if (!empty($app_links)) {
foreach ($app_links as $row) {
foreach ($row as $key => $val) {
?>
<a href="<?= htmlspecialchars($val); ?>" role="button" style="margin-bottom:3pt" class="btn btn-primary"><?= htmlspecialchars($key); ?></a>&nbsp;
<?php
}
}
}
Expand Down

0 comments on commit 0dfb59e

Please sign in to comment.