From 7c8bd81149543dafd19e8b170181224205990e1e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 May 2009 14:44:29 +0000 Subject: [PATCH] "return a reference to the var in the session!" --- phpgwapi/inc/class.egw_cache.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_cache.inc.php b/phpgwapi/inc/class.egw_cache.inc.php index 93ca5c3b8c..658b94107c 100644 --- a/phpgwapi/inc/class.egw_cache.inc.php +++ b/phpgwapi/inc/class.egw_cache.inc.php @@ -269,6 +269,8 @@ class egw_cache /** * Get some data from the cache for the whole source tree (all instances) * + * Returns a reference to the var in the session! + * * @param string $app application storing data * @param string $location location name for data * @param callback $callback=null callback to get/create the value, if it's not cache @@ -276,7 +278,7 @@ class egw_cache * @param int $expiration=0 expiration time in seconds, default 0 = never * @return mixed NULL if data not found in cache (and no callback specified) */ - static public function getSession($app,$location,$callback=null,array $callback_params=null,$expiration=0) + static public function &getSession($app,$location,$callback=null,array $callback_params=null,$expiration=0) { if (isset($_SESSION[egw_session::EGW_SESSION_ENCRYPTED])) {