* Fix convert importNotice;
This commit is contained in:
@@ -274,7 +274,7 @@ class convert extends control
|
||||
if($method == 'db')
|
||||
{
|
||||
$dbName = $this->post->dbName;
|
||||
if(!$this->convert->checkDBName($dbName)) die('Invalid database name.');
|
||||
|
||||
if(!$dbName)
|
||||
{
|
||||
$response['result'] = 'fail';
|
||||
|
||||
@@ -43,7 +43,7 @@ class convertModel extends model
|
||||
*/
|
||||
public function dbExists($dbName = '')
|
||||
{
|
||||
if(!$this->checkDBName($dbName)) die('Invalid database name.');
|
||||
if(!$this->checkDBName($dbName)) return false;
|
||||
$statement = $this->dbh->prepare('SHOW DATABASES like ?');
|
||||
$statement->execute(array($dbName));
|
||||
return $statement->fetch();
|
||||
|
||||
Reference in New Issue
Block a user