* Fix an error, if there are files to be deleted, fromVersion is undefined.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user