summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-23 15:25:37 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-23 15:25:37 +0200
commit446d4537d4caab1bb76a9612c1a16f5060618673 (patch)
tree25a2539e6eeb11b3e155698314c5de165618bc7e /web
parented1e747847ce6e5f9928505e7fc6630779d91f85 (diff)
downloadaurweb-446d4537d4caab1bb76a9612c1a16f5060618673.tar.xz
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>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkgreq_results.php7
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; ?>