修正数据关键词查看首个关键词标签名称为空的问题。

This commit is contained in:
Li Heng 2014-03-18 09:27:54 +00:00
parent 9555df5796
commit 7d2bfb34fc
1 changed files with 2 additions and 0 deletions

View File

@ -19,7 +19,9 @@ if (!empty($this->codename)) $this->headTitle($this->codename);
?>
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
<ul class="nav nav-pills">
<?php if(!empty($cg['keyword'])){ ?>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?><span class="note pull-right">(<?php echo $cg['count']; ?>)</span></a></li>
<?php }?>
<?php else : ?>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?><span class="note pull-right">(<?php echo $cg['count']; ?>)</span></a></li>
<?php endif; ?>