* Fix an error, if there are files to be deleted, fromVersion is undefined.

This commit is contained in:
hufangzhou
2023-12-18 17:22:40 +08:00
parent f875e59a89
commit 99dc25bccf
+4 -4
View File
@@ -147,7 +147,8 @@ class upgrade extends control
session_write_close();
$this->session->set('step', '');
$this->view->title = $this->lang->upgrade->result;
$this->view->title = $this->lang->upgrade->result;
$this->view->fromVersion = $fromVersion;
$result = $this->upgrade->deleteFiles();
if($result)
@@ -231,9 +232,8 @@ class upgrade extends control
$this->locate(inlink('afterExec', "fromVersion=$fromVersion"));
}
$this->view->result = 'sqlFail';
$this->view->fromVersion = $fromVersion;
$this->view->errors = $this->upgrade->getError();
$this->view->result = 'sqlFail';
$this->view->errors = $this->upgrade->getError();
$this->display();
}