Merge branch release/21.7.8 of zentao/zentaopms (#12940)
This commit is contained in:
@@ -58,7 +58,7 @@ class datalist extends wg
|
||||
),
|
||||
div
|
||||
(
|
||||
setClass('datalist-item-content', $contentClass),
|
||||
setClass('datalist-item-content whitespace-pre-wrap', $contentClass),
|
||||
$content,
|
||||
$children
|
||||
)
|
||||
|
||||
@@ -65,8 +65,8 @@ class convertModel extends model
|
||||
public function dbExists(string $dbName = ''): object|false
|
||||
{
|
||||
if(!$this->checkDBName($dbName)) return false;
|
||||
|
||||
return $this->dbh->execute('SHOW DATABASES like ?', array($dbName))->fetch();
|
||||
$quotedDbName = $this->dbh->quote($dbName);
|
||||
return $this->dbh->query("SHOW DATABASES like {$quotedDbName}")->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user