From 6e77926e3f2a83aa4d561463dfa3c8e5a8f278f0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 5 Nov 2010 15:46:37 -0600 Subject: [PATCH] Bug #9370: New session code fix --- ingo/lib/Storage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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']; -- 2.11.0