"only check callback, if defined"

This commit is contained in:
Ralf Becker 2009-04-23 09:48:03 +00:00
parent 94190a81f7
commit 4245df1f29

View File

@ -125,7 +125,7 @@ class egw_cache
return null; return null;
} }
$data = $provider->get($keys=self::keys($level,$app,$location)); $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."); //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); $data = call_user_func_array($callback,$callback_params);