aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-04-21 02:10:45 +0000
committerrvelices <rv-github@modusoptimus.com>2006-04-21 02:10:45 +0000
commit01f06a878ff37f734e2fa9887ee88a28d125e4ce (patch)
tree0d61324199640d23ee9f5e2cbdb191ee67aa9dca /include/user.inc.php
parentd637dbbe1d94f9e503bce3c0c5497accfa2728cd (diff)
bugs 344 and 308: broken user id in $_SESSION due to php.ini register_globals
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1230 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/user.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/user.inc.php b/include/user.inc.php
index 83d86a6c7..b1ec2f879 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -29,9 +29,9 @@
if (isset($_COOKIE[session_name()]))
{
session_start();
- if (isset($_SESSION['id']))
+ if (isset($_SESSION['pwg_uid']))
{
- $user['id'] = $_SESSION['id'];
+ $user['id'] = $_SESSION['pwg_uid'];
$user['is_the_guest'] = false;
}
else