[-] Installer: clear the database when an error occured during the install

This commit is contained in:
Rémi Gaillard
2013-01-23 17:05:51 +01:00
parent 43290dd47a
commit 04e436551b
+4 -1
View File
@@ -105,8 +105,11 @@ class InstallControllerHttpProcess extends InstallControllerHttp
// With no parameters, we consider that we are doing a new install, so session where the last process step
// was stored can be cleaned
if (Tools::getValue('restart'))
{
$this->session->process_validated = array();
else if (!Tools::getValue('submitNext'))
$this->session->database_clear = true;
}
elseif (!Tools::getValue('submitNext'))
{
$this->session->step = 'configure';
$this->session->last_step = 'configure';