Fix for Issue #1176

Fix for Issue #1176
This commit is contained in:
SamBrishes 2020-05-22 23:34:15 +02:00
parent 4a740ecb03
commit 4ec9b47c96

View File

@ -70,7 +70,9 @@ foreach ($_FILES['images']['name'] as $uuid=>$filename) {
$image = transformImage(PATH_TMP.$filename, $imageDirectory, $thumbnailDirectory);
// Delete temporary file
Filesystem::rmfile(PATH_TMP.$filename);
if (file_exists(PATH_TMP.$filename)) {
Filesystem::rmfile(PATH_TMP.$filename);
}
if ($image) {
chmod($image, 0644);