Skip to content

Commit

Permalink
Fix download link
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Aug 25, 2023
1 parent e61efc8 commit 9bff039
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ function get($metadata, $name){
<a href="<?=get($metadata, 'url')?>">🌐 Website</a>
<br/>
<?php } ?>
<a href="<?=name?>/<?=$file?>">📥 Download</a>
<?php $filename = get($metadata, 'filename'); ?>
<?php if($filename){ ?>
<a href="<?=$name?>/<?=$filename?>">📥 Download</a>
<?php } ?>
</sub>
</p>
</section>
Expand Down

0 comments on commit 9bff039

Please sign in to comment.