From b26b209b068970ff321da2bc76161c3a6969773d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 16 Jan 2017 11:01:17 +0100 Subject: [PATCH] KickstartController: do not fail on missing schema --- application/controllers/KickstartController.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/application/controllers/KickstartController.php b/application/controllers/KickstartController.php index e665aa1d..42de97d7 100644 --- a/application/controllers/KickstartController.php +++ b/application/controllers/KickstartController.php @@ -10,9 +10,13 @@ class KickstartController extends DashboardController public function indexAction() { $this->singleTab($this->view->title = $this->translate('Kickstart')); - $this->view->form = $this - ->loadForm('kickstart') - ->setEndpoint($this->db()->getDeploymentEndpoint()) - ->handleRequest(); + $form = $this->view->form = $this->loadForm('kickstart'); + try { + $form->setEndpoint($this->db()->getDeploymentEndpoint()); + } catch (Exception $e) { + // Silently ignore DB errors + } + + $form->handleRequest(); } }