Merge branch release/21.7.8 of zentao/zentaopms (#12940)

This commit is contained in:
刘刚
2025-12-23 12:44:53 +08:00
committed by Gitfox
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class datalist extends wg
),
div
(
setClass('datalist-item-content', $contentClass),
setClass('datalist-item-content whitespace-pre-wrap', $contentClass),
$content,
$children
)
+2 -2
View File
@@ -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();
}
/**