mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11029] Cache obtain_cfg_items should return empty array on failure
continue was used where it should not have been, causing a fatal error This file is loaded on every page to check if style.cfg has changed. If it has not, the user is not affected, so if it does not exist, the user should not be affected either. PHPBB3-11029
This commit is contained in:
parent
17681c0770
commit
2c1da15ae8
1 changed files with 1 additions and 1 deletions
2
phpBB/includes/cache/service.php
vendored
2
phpBB/includes/cache/service.php
vendored
|
@ -337,7 +337,7 @@ class phpbb_cache_service
|
|||
|
||||
if (!file_exists($filename))
|
||||
{
|
||||
continue;
|
||||
return array();
|
||||
}
|
||||
|
||||
if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
|
||||
|
|
Loading…
Add table
Reference in a new issue