From 9b476e06870ebba674f882d42a423d6eb0103a5e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 27 Jul 2007 09:36:00 +0000 Subject: [PATCH] fixed problem caused by non existing session-object in setup, reported und the user list --- phpgwapi/inc/class.accounts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 2b6177c9c6..5618bec6a4 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -751,7 +751,7 @@ class accounts extends accounts_backend //echo "

accounts::setup_cache() use_session_cache=$this->use_session_cache, is_array(this->cache)=".(int)is_array($this->cache)."

\n"; if (is_array($this->cache)) return; // cache is already setup - if ($this->use_session_cache && isset($GLOBALS['egw']->accounts) && !is_array($GLOBALS['egw']->accounts->cache)) + if ($this->use_session_cache && isset($GLOBALS['egw']->accounts) && !is_array($GLOBALS['egw']->accounts->cache) && is_object($GLOBALS['egw']->session)) { //echo "

restoring the session-cache for \$GLOBALS['egw']->accounts

\n"; $GLOBALS['egw']->accounts->cache = $GLOBALS['egw']->session->appsession('accounts_cache','phpgwapi');