From 089a967106361d7fae192dd8b78aa3351fe15050 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 17 Jan 2016 00:19:10 +0800 Subject: [PATCH] fix some shit --- ajax.php | 2 +- includes/user.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ajax.php b/ajax.php index 0cc3c885..45d78645 100644 --- a/ajax.php +++ b/ajax.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-01-17 00:01:57 + * @Last Modified time: 2016-01-17 00:17:39 * * All ajax requests will be handled here */ diff --git a/includes/user.class.php b/includes/user.class.php index 1a0ebbb0..6b090f4c 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-01-17 00:13:55 + * @Last Modified time: 2016-01-17 00:18:28 */ class user { @@ -19,7 +19,7 @@ class user { if (utils::select('username', $this -> uname)['uid'] == 1) { $this -> is_admin = true; } - if (utils::select('username', $this -> uname)['password'] !== "") { + if (utils::select('username', $this -> uname)['password'] != "") { $this -> passwd = utils::select('username', $this -> uname)['password']; $this -> is_registered = true; $this -> token = md5($this -> uname.$this -> passwd.SALT);