mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
oopsie, $fp no longer exists, using lock file instead
git-svn-id: file:///svn/phpbb/trunk@4558 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -509,15 +509,11 @@ class queue
|
|||||||
|
|
||||||
if (!sizeof($this->queue_data))
|
if (!sizeof($this->queue_data))
|
||||||
{
|
{
|
||||||
@flock($fp, LOCK_UN);
|
@unlink($this->cache_file);
|
||||||
fclose($fp);
|
|
||||||
unlink($this->cache_file);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$file = '<?php $this->queue_data=' . $this->format_array($this->queue_data) . '; ?>';
|
$file = '<?php $this->queue_data=' . $this->format_array($this->queue_data) . '; ?>';
|
||||||
@flock($fp, LOCK_UN);
|
|
||||||
fclose($fp);
|
|
||||||
|
|
||||||
if ($fp = @fopen($this->cache_file, 'w'))
|
if ($fp = @fopen($this->cache_file, 'w'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user