Verified Commit 66a39880 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: (CORE) - progression of un-seralization 2

No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -57,7 +57,7 @@ class session
public static function set ($name, $value)
{
if ($name === 'config') {
$value = json_encode($value);
$value = pack('C',$value);
}
$_SESSION[$name] = $value;
}
......@@ -78,7 +78,9 @@ class session
public static function get ($name)
{
if ($name === 'config') {
return json_decode($_SESSION[$name]);
if (isset($_SESSION['config'])) {
return unpack('C', $_SESSION[$name]);
}
}
else if (isset($_SESSION[$name])) {
return $_SESSION[$name];
......
Supports Markdown
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