summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/header.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/header.php b/includes/header.php
index 599c6ea..9ddcc36 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -159,7 +159,8 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;
<h1><?php $this->title(); ?></h1>
<div class="header-meta">
<?php if($this->fields->meta==''):
- if(!isset($_SESSION["isPageArchive"]) || !$_SESSION["isPageArchive"]){ ?>
+ if(isset($_SESSION) &&
+ (!isset($_SESSION["isPageArchive"]) || !$_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">&#xe80e;</i> <?php $this->category(','); ?></span>&emsp;<?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">&#xe65e;</i> <?php $this->commentsNum('0', '1', '%d'); ?></span>&emsp;<?php endif;?>