mirror of
https://github.com/filegator/filegator.git
synced 2025-08-02 00:20:20 +02:00
checking resource before closing zip
This commit is contained in:
@@ -124,7 +124,9 @@ class ZipArchiver implements Service, ArchiverInterface
|
|||||||
|
|
||||||
$file = $this->tmpfs->readStream($this->uniqid);
|
$file = $this->tmpfs->readStream($this->uniqid);
|
||||||
$this->storage->store($destination, $name, $file['stream']);
|
$this->storage->store($destination, $name, $file['stream']);
|
||||||
fclose($file['stream']);
|
if (is_resource($file['stream'])) {
|
||||||
|
fclose($file['stream']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->tmpfs->remove($this->uniqid);
|
$this->tmpfs->remove($this->uniqid);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user