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
This commit is contained in:
ro 2024-06-12 14:59:07 -06:00
parent 59b9f481af
commit e02f99da94
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50

View file

@ -135,7 +135,9 @@ class InitService
if ($found) {
if (password_verify($request->restore_member_pass, $found['password'])) {
//restore assets from previous site
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);