From 4245df1f299fd694a4d0424bd757fee4b58ac33a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 23 Apr 2009 09:48:03 +0000 Subject: [PATCH] "only check callback, if defined" --- phpgwapi/inc/class.egw_cache.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_cache.inc.php b/phpgwapi/inc/class.egw_cache.inc.php index 20ac7b6a87..53389a8c9e 100644 --- a/phpgwapi/inc/class.egw_cache.inc.php +++ b/phpgwapi/inc/class.egw_cache.inc.php @@ -125,7 +125,7 @@ class egw_cache return null; } $data = $provider->get($keys=self::keys($level,$app,$location)); - if (is_null($data)) + if (is_null($data) && !is_null($callback)) { //error_log(__METHOD__."($level,$app,$location,".array2string($callback).','.array2string($callback_params).",$expiration) calling calback to create data."); $data = call_user_func_array($callback,$callback_params);