summaryrefslogtreecommitdiff
path: root/forum/utils/login.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-28 17:40:14 +0000
committerdeva <deva>2008-10-28 17:40:14 +0000
commit8019ffe457f035a830336d5a4e5faaf9fcd2b3af (patch)
tree391d0eee956428cdf8fecb3ef2240f5816d8e1b6 /forum/utils/login.php
parent729cff9ffa98ca750be5cc1a05bb64ebd411a521 (diff)
Fixed wierd bug in login system.
Diffstat (limited to 'forum/utils/login.php')
-rw-r--r--forum/utils/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/utils/login.php b/forum/utils/login.php
index 50d0da2..87f76a9 100644
--- a/forum/utils/login.php
+++ b/forum/utils/login.php
@@ -31,7 +31,7 @@ function checklogin()
$current_uid = $users->getUserID($current_username);
$u = $users->getUser($current_uid);
- if($u && $u->checkPassword($current_password) ) {
+ if($current_uid != -1 && $u && $u->checkPassword($current_password) ) {
$current_user = $u;
setcookie("current_uid", $current_uid, time()+$ADMIN_TIMEOUT);
setcookie("current_password", $current_password, time()+$ADMIN_TIMEOUT);