Fix file exist on mdkir Site

This commit is contained in:
Jérémy Munsch 2021-07-27 16:12:51 +02:00
parent 1dc9fff54f
commit 247a559be9

View file

@ -143,7 +143,7 @@ class Site extends Model
$newPath = Site::ticketAssetsFullPath($site->slug_name);
if (File::exists($oldPath)) {
File::move($oldPath, $newPath);
} else {
} elseif (!File::exists($newPath)) {
File::makeDirectory($newPath, 0755, true);
}
});