除去空tag

This commit is contained in:
2025-05-01 16:54:05 +08:00
parent 3f07e94063
commit 49787b8e9c

View File

@@ -39,7 +39,9 @@
?> ?>
<h3>其他标签</h3> <h3>其他标签</h3>
<div class="tag-cloud"> <div class="tag-cloud">
<?php foreach ($remaining_tags as $tag): ?> <?php foreach ($remaining_tags as $tag):
if (trim($tag) == "" || trim($tag) == "&nbsp") continue;
?>
<a href="problemset.php?search=<?php echo urlencode(trim($tag)); ?>" class="ui label"><?php echo trim($tag); ?></a> <a href="problemset.php?search=<?php echo urlencode(trim($tag)); ?>" class="ui label"><?php echo trim($tag); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>