* Fix convert importNotice;

This commit is contained in:
tanghucheng
2023-05-30 08:24:21 +00:00
parent d3b84f49a5
commit b7edd585bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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();