- Fixed small bug in user.module. Patch by Marco.
parent
c3a60df58b
commit
ef03e6a36c
|
@ -23,7 +23,7 @@ function sess_read($key) {
|
|||
global $user;
|
||||
$user = user_load(array("sid" => $key, "status" => 1));
|
||||
|
||||
return $user->sid ? $user->sid : '';
|
||||
return $user->session ? $user->session : '';
|
||||
}
|
||||
|
||||
function sess_write($key, $value) {
|
||||
|
|
|
@ -23,7 +23,7 @@ function sess_read($key) {
|
|||
global $user;
|
||||
$user = user_load(array("sid" => $key, "status" => 1));
|
||||
|
||||
return $user->sid ? $user->sid : '';
|
||||
return $user->session ? $user->session : '';
|
||||
}
|
||||
|
||||
function sess_write($key, $value) {
|
||||
|
|
Loading…
Reference in New Issue