mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
[ticket/15791] php 7.2 count() bug in memory cache driver
function `_read` in classes inherted from `memory` may returns `false` but `$vars` must be an array PHPBB3-15791
This commit is contained in:
parent
b0d55a69c7
commit
c7631635fa
5
phpBB/phpbb/cache/driver/memory.php
vendored
5
phpBB/phpbb/cache/driver/memory.php
vendored
@ -51,10 +51,11 @@ abstract class memory extends \phpbb\cache\driver\base
|
||||
function load()
|
||||
{
|
||||
// grab the global cache
|
||||
$this->vars = $this->_read('global');
|
||||
$data = $this->_read('global');
|
||||
|
||||
if ($this->vars !== false)
|
||||
if ($data !== false)
|
||||
{
|
||||
$this->vars = $data;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user