- 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
Kjartan Mannes 2002-04-29 18:10:56 +00:00
parent a676cde7b2
commit f423f91d37
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {