mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/10875] Fix logic in phpbb_cache_driver_file::sql_save().
Previously (develop-olympus) $query_result was passed via reference into sql_save(). Now the (possibly changed) result is returned by value. Adjust logic to take this change into account correctly. PHPBB3-10875
This commit is contained in:
parent
59af4d68fc
commit
4e83cd461c
1 changed files with 2 additions and 2 deletions
4
phpBB/includes/cache/driver/file.php
vendored
4
phpBB/includes/cache/driver/file.php
vendored
|
@ -383,10 +383,10 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base
|
|||
|
||||
if ($this->_write('sql_' . md5($query), $this->sql_rowset[$query_id], $ttl + time(), $query))
|
||||
{
|
||||
$query_result = $query_id;
|
||||
return $query_id;
|
||||
}
|
||||
|
||||
return $query_id;
|
||||
return $query_result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue