Commit 4ae1f447 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Session.php: Fix - close running session only if it is not already closed.

parent 2ad1b457
......@@ -45,7 +45,10 @@ class Session {
* Free a lock on the current session
*/
public static function close() {
session_write_close();
if (self::$sessionOpen) {
session_write_close();
}
self::$sessionOpen = false;
}
......
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