Session: Initialize the $logger class variable when a session class is deserialized.
git-svn-id: http://simplesamlphp.googlecode.com/svn/trunk@267 44740490-163a-0410-bde0-09ae8108e29a
This commit is contained in:
parent
ad0f1d92a3
commit
51d439deae
|
@ -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) {
|
||||
|
|
Reference in New Issue