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

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