diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-08-26 18:46:08 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-10-30 18:50:26 -0400 |
commit | 4e83cd461ce2adb008889593abf352745d9adff6 (patch) | |
tree | 1694e17d355087629afb95a7344e902795685daa /phpBB/includes | |
parent | 59af4d68fc6f5455e156c5a192b35ca1ffe6872b (diff) | |
download | forums-4e83cd461ce2adb008889593abf352745d9adff6.tar forums-4e83cd461ce2adb008889593abf352745d9adff6.tar.gz forums-4e83cd461ce2adb008889593abf352745d9adff6.tar.bz2 forums-4e83cd461ce2adb008889593abf352745d9adff6.tar.xz forums-4e83cd461ce2adb008889593abf352745d9adff6.zip |
[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
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/cache/driver/file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/cache/driver/file.php b/phpBB/includes/cache/driver/file.php index f64a9e3ea8..d45497af56 100644 --- a/phpBB/includes/cache/driver/file.php +++ b/phpBB/includes/cache/driver/file.php @@ -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; } /** |