add fclose, fixes issue from bdb96b9af8
This commit is contained in:
parent
37d22bf170
commit
32a5d51fa6
|
@ -408,6 +408,7 @@ class Preview {
|
||||||
$image->loadFromFileHandle($stream);
|
$image->loadFromFileHandle($stream);
|
||||||
$this->preview = $image->valid() ? $image : null;
|
$this->preview = $image->valid() ? $image : null;
|
||||||
$this->resizeAndCrop();
|
$this->resizeAndCrop();
|
||||||
|
fclose($stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($this->preview)) {
|
if (is_null($this->preview)) {
|
||||||
|
|
Loading…
Reference in New Issue