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:
Paul S. Owen 2003-10-11 23:59:41 +00:00
parent 0d56643cb2
commit fdcad33b8b

View file

@ -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'))
{ {