From 5dc5cfb90648b9e1034dfb56a150c6e2ecaca64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=81=E5=AE=81?= Date: Mon, 10 Mar 2014 21:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3waring=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E5=BE=84=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/User.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/Widget/User.php b/var/Widget/User.php index 2eab1369..89fb42aa 100644 --- a/var/Widget/User.php +++ b/var/Widget/User.php @@ -124,6 +124,10 @@ class Widget_User extends Typecho_Widget ->where((strpos($name, '@') ? 'mail' : 'name') . ' = ?', $name) ->limit(1)); + if (empty($user)) { + return false; + } + $hashValidate = $this->pluginHandle()->trigger($hashPluggable)->hashValidate($password, $user['password']); if (!$hashPluggable) { $hashValidate = Typecho_Common::hashValidate($password, $user['password']);