From ab712faefff58db54ed2c3bc8830859f608e95f0 Mon Sep 17 00:00:00 2001 From: DSB Date: Tue, 14 Jun 2011 20:09:03 +0000 Subject: [PATCH] SQLController: - removed dead code --- application/controllers/SqlController.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/application/controllers/SqlController.php b/application/controllers/SqlController.php index ceaecc7..239c5aa 100644 --- a/application/controllers/SqlController.php +++ b/application/controllers/SqlController.php @@ -200,16 +200,12 @@ class SqlController extends Zend_Controller_Action $newDbInfo['dbCharset'], $newDbInfo['dbCollation'] ); - if (!$dbCreated) { - $errorInfo = $this->_db->getLastError(); - } else { - //db created - refresh db list for menu - $this->view->config->set( - 'dynamic.dbActual', - $newDbInfo['dbName'] - ); - $this->_refreshDbList('create.database'); - } + //db created - refresh db list for menu + $this->view->config->set( + 'dynamic.dbActual', + $newDbInfo['dbName'] + ); + $this->_refreshDbList('create.database'); } catch (Msd_Exception $e) { $dbCreated = false; $errorInfo = array(