[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:
Andreas Fischer 2012-08-26 18:46:08 +02:00
parent 59af4d68fc
commit 4e83cd461c

View file

@ -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)) 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;
} }
/** /**