diff --git a/lib/dbh/dbh.class.php b/lib/dbh/dbh.class.php index 28b1c52a44..4cc0fa91e3 100644 --- a/lib/dbh/dbh.class.php +++ b/lib/dbh/dbh.class.php @@ -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); diff --git a/module/install/zen.php b/module/install/zen.php index f329df2cf7..08e0127278 100644 --- a/module/install/zen.php +++ b/module/install/zen.php @@ -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';