From fbffb3baca249ce87af32c3c9379279ff85d414b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 29 Aug 2008 12:43:30 +0000 Subject: [PATCH] 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. --- phpgwapi/inc/class.ldap.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.ldap.inc.php b/phpgwapi/inc/class.ldap.inc.php index 9eb8e9aeb3..d8962c7c5f 100644 --- a/phpgwapi/inc/class.ldap.inc.php +++ b/phpgwapi/inc/class.ldap.inc.php @@ -237,7 +237,7 @@ { 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 { - $GLOBALS['egw']->session->appsession('ldapServerInfo','',$this->ldapServerInfo); + $GLOBALS['egw']->session->appsession('ldapServerInfo','',serialize($this->ldapServerInfo)); } }