diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-25 14:38:30 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-25 14:38:30 +0800 |
| commit | 7168e743fe802cc977ce8fe990f09bf87ba46eaa (patch) | |
| tree | 0a000a677c25bfd188051c7f23565fbfa89005c2 /includes | |
| parent | 2c028cef411a2eae19c82b7b89fedb9b8b191b4f (diff) | |
:bug: Fix: 使用 $_SEESSION 变量导致报错
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/header.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/header.php b/includes/header.php index fc5c6ec..4130d78 100644 --- a/includes/header.php +++ b/includes/header.php @@ -141,7 +141,7 @@ <h1><?php $this->title(); ?></h1> <div class="header-meta"> <?php if($this->fields->meta==''): - if($_SESSION["isPageArchive"]!=true){ ?> + if(!$_SESSION["isPageArchive"]){ ?> <div class="header-meta-line-one"> <?php if($this->is('post')): ?><span class="hint--bottom" data-tooltip="<?php gtaecho('postTexts','sort_title',$this->category) ?>"><i class="iconfont"></i> <?php $this->category(','); ?></span> <?php endif; ?> <?php if($this->fields->commentShow=='0'):?><span class="hint--bottom" data-tooltip="<?php if($this->commentsNum=='0'): gtecho('commentListTexts', 'commentNumNone'); else:gtaecho('commentListTexts', 'commentNum', $this->commentsNum);endif; ?>"><i class="iconfont"></i> <?php $this->commentsNum('0', '1', '%d'); ?></span> <?php endif;?> |
