From 0dfb59e912b07c6df043e88f5a25f929c4d0ff71 Mon Sep 17 00:00:00 2001 From: Tii <mail@tii.one> Date: Sat, 15 Aug 2020 10:14:33 +0200 Subject: [PATCH] Display app_links always (#3664) * Display app_links always Displays $app_links always, even if $MAILCOW_APPS is empty. * Removed trailing spaces added by GitHubs editor --- data/web/index.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/data/web/index.php b/data/web/index.php index 3538c6b6..56aef179 100644 --- a/data/web/index.php +++ b/data/web/index.php @@ -91,14 +91,14 @@ $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING']; <a href="<?= htmlspecialchars($app['link']); ?>" role="button" style="margin-bottom:3pt" title="<?= htmlspecialchars($app['description']); ?>" class="btn btn-primary"><?= htmlspecialchars($app['name']); ?></a> <?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> - <?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> + <?php } } }