]> git.mxchange.org Git - mailer.git/commitdiff
Fix for removed userid
authorRoland Häder <roland@mxchange.org>
Sat, 27 Sep 2008 19:53:07 +0000 (19:53 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 27 Sep 2008 19:53:07 +0000 (19:53 +0000)
inc/mysql-manager.php

index 83677bd75b389c1e8665beb7dfaf5a19f0acca78..a54357dafddb326f3689d6cec0ff06e5df95cffc 100644 (file)
@@ -623,15 +623,15 @@ function IS_MEMBER()
                                //* DEBUG: */ echo __LINE__."!!!<br />";
                                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__."***<br />";
 
-                       // 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__."///<br />";
                destroy_user_session();
 
-               // Remove array elements to prevent errors
-               unset($GLOBALS['userid']);
+               // Reset userid
+               $GLOBALS['userid'] = 0;
        }
 
        // Cache status