Skip to content
Snippets Groups Projects
Commit 3bd4122b authored by Olav Morken's avatar Olav Morken
Browse files

Session: Initialize the $logger class variable when a session class is deserialized.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@267 44740490-163a-0410-bde0-09ae8108e29a
parent 34e1f5bd
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,17 @@ class SimpleSAML_Session {
$this->trackid = SimpleSAML_Utilities::generateTrackID();
}
/**
* This function is called after this class has been deserialized.
*/
public function __wakeup() {
/* Initialize the $logger class variable if it hasn't been initialized. */
if (self::$logger === NULL) {
self::$logger = new SimpleSAML_Logger();
}
}
public static function getInstance($allowcreate = false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment