diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-23 15:25:37 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-23 15:25:37 +0200 |
commit | 446d4537d4caab1bb76a9612c1a16f5060618673 (patch) | |
tree | 25a2539e6eeb11b3e155698314c5de165618bc7e | |
parent | ed1e747847ce6e5f9928505e7fc6630779d91f85 (diff) |
pkgreq_results.php: Only show non-empty merge targets
In the column that contains the merge target, only display the
parentheses if the merge target is a non-empty string.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r-- | web/template/pkgreq_results.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php index 2898bd5..5e64476 100644 --- a/web/template/pkgreq_results.php +++ b/web/template/pkgreq_results.php @@ -40,7 +40,12 @@ <td><?= htmlspecialchars($row["Name"]) ?></td> <?php endif; ?> <?php if ($row['Type'] == 'merge'): ?> - <td><?= htmlspecialchars(ucfirst($row['Type']), ENT_QUOTES); ?> (<?= htmlspecialchars($row['MergeInto'], ENT_QUOTES); ?>)</td> + <td> + <?= htmlspecialchars(ucfirst($row['Type']), ENT_QUOTES); ?> + <?php if (!empty($row['MergeInto'])): ?> + (<?= htmlspecialchars($row['MergeInto'], ENT_QUOTES); ?>) + <?php endif; ?> + </td> <?php else: ?> <td><?= htmlspecialchars(ucfirst($row['Type']), ENT_QUOTES); ?></td> <?php endif; ?> |