From: Michael M Slusarz Date: Fri, 5 Nov 2010 21:46:37 +0000 (-0600) Subject: Bug #9370: New session code fix X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6e77926e3f2a83aa4d561463dfa3c8e5a8f278f0;p=horde.git Bug #9370: New session code fix --- diff --git a/ingo/lib/Storage.php b/ingo/lib/Storage.php index e4b65fa3d..968fbd5c7 100644 --- a/ingo/lib/Storage.php +++ b/ingo/lib/Storage.php @@ -132,11 +132,10 @@ class Ingo_Storage /* Don't cache if using shares. */ if ($cache && empty($GLOBALS['ingo_shares'])) { if (!isset($this->_cache[$field])) { + $cached = $GLOBALS['session']->retrieve($_SESSION['ingo']['storage'][$field]); $this->_cache[$field] = array( 'mod' => false, - 'ob' => isset($_SESSION['ingo']['storage'][$field]) - ? $GLOBALS['session'][$_SESSION['ingo']['storage'][$field]] - : $this->_retrieve($field, $readonly) + 'ob' => $cached ? $cached : $this->_retrieve($field, $readonly) ); } $ob = $this->_cache[$field]['ob'];