summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-29 18:10:56 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-29 18:10:56 +0000
commitf423f91d370e8a8a47641df5ba35b98f11bbf3ba (patch)
tree2d07868a10b7a8437de37c6fc3007168d1880081 /modules
parenta676cde7b2b5e4a40f651cdfe3f1cf86d8a20140 (diff)
downloadbrdo-f423f91d370e8a8a47641df5ba35b98f11bbf3ba.tar.gz
brdo-f423f91d370e8a8a47641df5ba35b98f11bbf3ba.tar.bz2
- fixed the son of session crash. Its amazing how vitally important it is to return
valid data is to PHP.. one mistake and things start to crash at random times.
Diffstat (limited to 'modules')
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module
index 877401d16..ae17df337 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -18,7 +18,7 @@ function sess_read($key) {
global $user;
$user = user_load(array("sid" => $key, "status" => 1));
- return $user->session ? $user->session : '';
+ return $user->sid ? $user->sid : '';
}
function sess_write($key, $value) {
diff --git a/modules/user/user.module b/modules/user/user.module
index 877401d16..ae17df337 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -18,7 +18,7 @@ function sess_read($key) {
global $user;
$user = user_load(array("sid" => $key, "status" => 1));
- return $user->session ? $user->session : '';
+ return $user->sid ? $user->sid : '';
}
function sess_write($key, $value) {