From c317b059bf0a1acb3171c4e3255afcce48795947 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 27 Sep 2008 19:53:07 +0000 Subject: [PATCH] Fix for removed userid --- inc/mysql-manager.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 83677bd75b..a54357dafd 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -623,15 +623,15 @@ function IS_MEMBER() //* DEBUG: */ echo __LINE__."!!!
"; destroy_user_session(); - // Remove array elements to prevent errors - unset($GLOBALS['userid']); + // Reset userid + $GLOBALS['userid'] = 0; } } else { // Cookie data is invalid! //* DEBUG: */ echo __LINE__."***
"; - // Remove array elements to prevent errors - unset($GLOBALS['userid']); + // Reset userid + $GLOBALS['userid'] = 0; } // Free memory @@ -641,8 +641,8 @@ function IS_MEMBER() //* DEBUG: */ echo __LINE__."///
"; destroy_user_session(); - // Remove array elements to prevent errors - unset($GLOBALS['userid']); + // Reset userid + $GLOBALS['userid'] = 0; } // Cache status -- 2.39.5