mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 12:38:28 +01:00
fix #1008
This commit is contained in:
parent
bba332531b
commit
74c8143825
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* 这是 Typecho 0.9 系统的一套默认皮肤
|
||||
* Default theme for Typecho
|
||||
*
|
||||
* @package Typecho Replica Theme
|
||||
* @author Typecho Team
|
||||
|
@ -184,12 +184,14 @@ class Widget_User extends Typecho_Widget
|
||||
->limit(1));
|
||||
|
||||
if (empty($user)) {
|
||||
$this->pluginHandle()->simpleLoginFail($this);
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->push($user);
|
||||
$this->_hasLogin = true;
|
||||
|
||||
$this->pluginHandle()->simpleLoginSucceed($this, $user);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user