mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 20:48:42 +01:00
fix typo
This commit is contained in:
parent
0b1096c588
commit
235888cc3e
@ -168,14 +168,14 @@ class Widget_Abstract_Comments extends Widget_Abstract
|
||||
$insertStruct = array(
|
||||
'cid' => $comment['cid'],
|
||||
'created' => empty($comment['created']) ? $this->options->time : $comment['created'],
|
||||
'author' => !isset($content['author']) || strlen($comment['author']) === 0 ? NULL : $comment['author'],
|
||||
'author' => !isset($comment['author']) || strlen($comment['author']) === 0 ? NULL : $comment['author'],
|
||||
'authorId' => empty($comment['authorId']) ? 0 : $comment['authorId'],
|
||||
'ownerId' => empty($comment['ownerId']) ? 0 : $comment['ownerId'],
|
||||
'mail' => !isset($content['mail']) || strlen($comment['mail']) === 0 ? NULL : $comment['mail'],
|
||||
'url' => !isset($content['url']) || strlen($comment['url']) === 0 ? NULL : $comment['url'],
|
||||
'ip' => !isset($content['ip']) || strlen($comment['ip']) === 0 ? $this->request->getIp() : $comment['ip'],
|
||||
'agent' => !isset($content['agent']) || strlen($comment['agent']) === 0 ? $_SERVER["HTTP_USER_AGENT"] : $comment['agent'],
|
||||
'text' => !isset($content['text']) || strlen($comment['text']) === 0 ? NULL : $comment['text'],
|
||||
'mail' => !isset($comment['mail']) || strlen($comment['mail']) === 0 ? NULL : $comment['mail'],
|
||||
'url' => !isset($comment['url']) || strlen($comment['url']) === 0 ? NULL : $comment['url'],
|
||||
'ip' => !isset($comment['ip']) || strlen($comment['ip']) === 0 ? $this->request->getIp() : $comment['ip'],
|
||||
'agent' => !isset($comment['agent']) || strlen($comment['agent']) === 0 ? $_SERVER["HTTP_USER_AGENT"] : $comment['agent'],
|
||||
'text' => !isset($comment['text']) || strlen($comment['text']) === 0 ? NULL : $comment['text'],
|
||||
'type' => empty($comment['type']) ? 'comment' : $comment['type'],
|
||||
'status' => empty($comment['status']) ? 'approved' : $comment['status'],
|
||||
'parent' => empty($comment['parent']) ? 0 : $comment['parent'],
|
||||
@ -225,10 +225,10 @@ class Widget_Abstract_Comments extends Widget_Abstract
|
||||
|
||||
/** 构建插入结构 */
|
||||
$preUpdateStruct = array(
|
||||
'author' => !isset($content['author']) || strlen($comment['author']) === 0 ? NULL : $comment['author'],
|
||||
'mail' => !isset($content['mail']) || strlen($comment['mail']) === 0 ? NULL : $comment['mail'],
|
||||
'url' => !isset($content['url']) || strlen($comment['url']) === 0 ? NULL : $comment['url'],
|
||||
'text' => !isset($content['text']) || strlen($comment['text']) === 0 ? NULL : $comment['text'],
|
||||
'author' => !isset($comment['author']) || strlen($comment['author']) === 0 ? NULL : $comment['author'],
|
||||
'mail' => !isset($comment['mail']) || strlen($comment['mail']) === 0 ? NULL : $comment['mail'],
|
||||
'url' => !isset($comment['url']) || strlen($comment['url']) === 0 ? NULL : $comment['url'],
|
||||
'text' => !isset($comment['text']) || strlen($comment['text']) === 0 ? NULL : $comment['text'],
|
||||
'status' => empty($comment['status']) ? 'approved' : $comment['status'],
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user