* [misc] Fix typo.

This commit is contained in:
liugang
2025-12-24 15:12:51 +08:00
parent eff4749de0
commit 30ef498fe3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -401,13 +401,13 @@ class dbh
}
/**
* Check table exits or not.
* Check table exist or not.
*
* @param string $tableName
* @access public
* @return void
*/
public function tableExits($tableName)
public function tableExist($tableName)
{
$tableName = str_replace(array("'", '`'), "", $tableName);
+1 -1
View File
@@ -290,7 +290,7 @@ class installZen extends install
return $return;
}
}
elseif($this->install->dbh->tableExits(TABLE_CONFIG) && empty($data->clearDB))
elseif($this->install->dbh->tableExist(TABLE_CONFIG) && empty($data->clearDB))
{
/* 如果已经存在config表,并且用户没有勾选清空旧数据库选项的话,则提示错误信息。 */
$return->result = 'fail';