summaryrefslogtreecommitdiff
path: root/inc/auth/punbb.class.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-08-05 18:31:47 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-08-05 18:31:47 +0200
commitbbbd6568079affbd98f1dcc567ad3ccdfb9017ab (patch)
treea3a68077ff622144449c6412053c2b83918ccc41 /inc/auth/punbb.class.php
parent4a26ad858528ca19c411f390a63b247673ba79fb (diff)
downloadrpg-bbbd6568079affbd98f1dcc567ad3ccdfb9017ab.tar.gz
rpg-bbbd6568079affbd98f1dcc567ad3ccdfb9017ab.tar.bz2
fixed auth problem introduced in last unittest fix
darcs-hash:20060805163147-7ad00-77e7d9cd88f012cd2ecc6275a574abde30f4a9be.gz
Diffstat (limited to 'inc/auth/punbb.class.php')
-rw-r--r--inc/auth/punbb.class.php3
1 files changed, 2 insertions, 1 deletions
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);
}
}