aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-08-06 15:05:06 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-08-06 15:05:06 -0500
commit907f1771f9594ee1906c5b0ad7fac765f2a1995d (patch)
treed231b1555f943baca23314571b7117845397e8c2 /phpBB/includes/cache
parent2c1da15ae83e292d3aa9c94f740d6bff6bfd238e (diff)
downloadforums-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.php2
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'])))