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:
olavmrk 2008-02-07 15:29:24 +00:00
parent ad0f1d92a3
commit 51d439deae
1 changed files with 11 additions and 1 deletions

View File

@ -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) {