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 83677bd..a54357d 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