From 247a559be981f8df49f405851ebcdbf3f8750cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 27 Jul 2021 16:12:51 +0200 Subject: [PATCH] Fix file exist on mdkir Site --- app/Models/Site.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Site.php b/app/Models/Site.php index e8f47f5..9012970 100644 --- a/app/Models/Site.php +++ b/app/Models/Site.php @@ -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); } });