mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02: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:
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'])))
|
||||
|
Reference in New Issue
Block a user