From bbbd6568079affbd98f1dcc567ad3ccdfb9017ab Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 5 Aug 2006 18:31:47 +0200 Subject: fixed auth problem introduced in last unittest fix darcs-hash:20060805163147-7ad00-77e7d9cd88f012cd2ecc6275a574abde30f4a9be.gz --- inc/auth/punbb.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/auth') diff --git a/inc/auth/punbb.class.php b/inc/auth/punbb.class.php index 71959910f..fb9b905ff 100644 --- a/inc/auth/punbb.class.php +++ b/inc/auth/punbb.class.php @@ -114,7 +114,7 @@ class auth_punbb extends auth_mysql { $sticky ? $sticky = true : $sticky = false; //sanity check // someone used the login form - if(isset($user)){ + if(!empty($user)){ if($this->checkPass($user,$pass)){ $expire = ($sticky) ? time() + 31536000 : 0; $uinfo = $this->getUserData($user); @@ -157,6 +157,7 @@ class auth_punbb extends auth_mysql { function logOff(){ global $pun_user; $pun_user = array(); + $pun_user['is_guest'] = 1; pun_setcookie(1, random_pass(8), time() + 31536000); } } -- cgit v1.2.3