[ticket/11029] Return $parsed_array (may have loaded from the cache)

Even if the file does not exist, it may be in the cache, so return
$parsed_array just in case

PHPBB3-11029
This commit is contained in:
Nathan Guse 2012-08-06 15:05:06 -05:00
parent 2c1da15ae8
commit 907f1771f9

View file

@ -337,7 +337,7 @@ class phpbb_cache_service
if (!file_exists($filename)) if (!file_exists($filename))
{ {
return array(); return $parsed_array;
} }
if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime']))) if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))