mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:38:53 +00:00
Merge pull request #5362 from hubaishan/ticket/15791
[ticket/15791] fix php 7.2 count() bug in memory cache driver
This commit is contained in:
commit
18dd250f52
1 changed files with 3 additions and 2 deletions
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…
Add table
Reference in a new issue