diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-08-06 15:05:06 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-08-06 15:05:06 -0500 |
commit | 907f1771f9594ee1906c5b0ad7fac765f2a1995d (patch) | |
tree | d231b1555f943baca23314571b7117845397e8c2 /phpBB/includes/cache | |
parent | 2c1da15ae83e292d3aa9c94f740d6bff6bfd238e (diff) | |
download | forums-907f1771f9594ee1906c5b0ad7fac765f2a1995d.tar forums-907f1771f9594ee1906c5b0ad7fac765f2a1995d.tar.gz forums-907f1771f9594ee1906c5b0ad7fac765f2a1995d.tar.bz2 forums-907f1771f9594ee1906c5b0ad7fac765f2a1995d.tar.xz forums-907f1771f9594ee1906c5b0ad7fac765f2a1995d.zip |
[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
Diffstat (limited to 'phpBB/includes/cache')
-rw-r--r-- | phpBB/includes/cache/service.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/cache/service.php b/phpBB/includes/cache/service.php index 5946241825..b29af3c531 100644 --- a/phpBB/includes/cache/service.php +++ b/phpBB/includes/cache/service.php @@ -337,7 +337,7 @@ class phpbb_cache_service if (!file_exists($filename)) { - return array(); + return $parsed_array; } if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime']))) |