mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
[feature/extension-manager] Correct usage of false cache return value
PHPBB3-10323
This commit is contained in:
parent
7435f344e2
commit
34f11a1039
2 changed files with 8 additions and 1 deletions
|
@ -283,6 +283,11 @@ class phpbb_extension_finder
|
|||
|
||||
if ($cache && $this->cache)
|
||||
{
|
||||
if ($this->cached_queries === false)
|
||||
{
|
||||
$this->cached_queries = array();
|
||||
}
|
||||
|
||||
$this->cached_queries[$query] = $files;
|
||||
$this->cache->put('_extension_finder', $this->cached_queries);
|
||||
}
|
||||
|
|
|
@ -45,7 +45,9 @@ class phpbb_extension_manager
|
|||
$this->phpEx = $phpEx;
|
||||
$this->extension_table = $extension_table;
|
||||
|
||||
if (false === ($this->extensions = $this->cache->get('_extensions')))
|
||||
$this->extensions = $this->cache->get('_extensions');
|
||||
|
||||
if ($this->extensions === false)
|
||||
{
|
||||
$this->load_extensions();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue