do not show link button on overview if there's no URL

This commit is contained in:
Tomáš Mládek 2018-07-31 15:51:36 +02:00
parent 29740e1d78
commit 7276ade3b1

View file

@ -7,7 +7,9 @@
<?php foreach($docs as $doc): ?>
<div class="text doc-item">
<a class="doc-item-link" href="<?= $doc["URL"] ?>">🔗</a>
<?php if (!empty($doc["URL"])): ?>
<a class="doc-item-link" href="<?= $doc["URL"] ?>">🔗</a>
<?php endif; ?>
<a href="?item=<?= $doc["ID"]?>">
<div class="doc-item-text">
<h2><?= $doc["Title"]?></h2>