Commit f423f91d authored by Kjartan's avatar Kjartan
Browse files

- 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.
parent a676cde7
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment