From: Roland Häder Date: Sat, 27 Sep 2008 19:53:07 +0000 (+0000) Subject: Fix for removed userid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c317b059bf0a1acb3171c4e3255afcce48795947;p=mailer.git Fix for removed userid --- 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