fixed a bug that came with the new session handling, since session save and session restore cant handle objects, we have to serialize them first

and unserialize them on retrieval.
This commit is contained in:
Klaus Leithoff 2008-08-29 12:43:30 +00:00
parent 5830b60482
commit fbffb3baca

View File

@ -237,7 +237,7 @@
{ {
if (isset($GLOBALS['egw']->session)) // no availible in setup if (isset($GLOBALS['egw']->session)) // no availible in setup
{ {
$this->ldapServerInfo = $GLOBALS['egw']->session->appsession('ldapServerInfo'); $this->ldapServerInfo = (array) unserialize($GLOBALS['egw']->session->appsession('ldapServerInfo'));
} }
} }
/** /**
@ -247,7 +247,7 @@
{ {
if (isset($GLOBALS['egw']->session)) // no availible in setup if (isset($GLOBALS['egw']->session)) // no availible in setup
{ {
$GLOBALS['egw']->session->appsession('ldapServerInfo','',$this->ldapServerInfo); $GLOBALS['egw']->session->appsession('ldapServerInfo','',serialize($this->ldapServerInfo));
} }
} }