From 04e436551be7a3cacbc4c11081bc9df8e7ea21ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 23 Jan 2013 17:05:51 +0100 Subject: [PATCH] [-] Installer: clear the database when an error occured during the install --- install-dev/controllers/http/process.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-dev/controllers/http/process.php b/install-dev/controllers/http/process.php index 60855c8a6..2e094ef92 100644 --- a/install-dev/controllers/http/process.php +++ b/install-dev/controllers/http/process.php @@ -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';