- 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.4.0.x
parent
a676cde7b2
commit
f423f91d37
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue