From e02f99da946830417c598d7dd323c624737e2cb8 Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 12 Jun 2024 14:59:07 -0600 Subject: [PATCH] restore asset url check in the restore init process, there is a space that restores assets from a previous install but grabbing them directly from the site and saving them to the install. a check was added so this script only runs if that url has been set in the init restore form --- app/Services/Upkeep/InitService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/Upkeep/InitService.php b/app/Services/Upkeep/InitService.php index 962b268..6240bc4 100644 --- a/app/Services/Upkeep/InitService.php +++ b/app/Services/Upkeep/InitService.php @@ -135,7 +135,9 @@ class InitService if ($found) { if (password_verify($request->restore_member_pass, $found['password'])) { //restore assets from previous site - $this->moveAssets($zip, $request->restore_former_url); + if ($request->restore_former_url != '' || $request->restore_former_url != null) { + $this->moveAssets($zip, $request->restore_former_url); + } $newFolks = []; if (!isset($found['secret'])) { $found['secret'] = self::validSecret(12);