diff options
author | Simon Rettberg | 2014-05-15 18:28:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-15 18:28:24 +0200 |
commit | 63c0cf521f8097b0dadaf1228176dc38c7d897f6 (patch) | |
tree | 83f5da6dc130ac7db575b0eee41ed6c7a2f994fb /inc/session.inc.php | |
parent | Fix handle leak in downloading, better error reporting on failed downloads, a... (diff) | |
download | slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.tar.gz slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.tar.xz slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.zip |
Working on config.tgz composition through config modules
Diffstat (limited to 'inc/session.inc.php')
-rw-r--r-- | inc/session.inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/session.inc.php b/inc/session.inc.php index 3ba614f2..a0f8ab4c 100644 --- a/inc/session.inc.php +++ b/inc/session.inc.php @@ -52,7 +52,11 @@ class Session public static function set($key, $value) { if (self::$data === false) Util::traceError('Tried to set session data with no active session'); - self::$data[$key] = $value; + if ($value === false) { + unset(self::$data[$key]); + } else { + self::$data[$key] = $value; + } } private static function loadSessionId() |