[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:
Nathan Guse 2012-07-30 16:23:18 -05:00
parent 17681c0770
commit 2c1da15ae8

View file

@ -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'])))