* Format code.

This commit is contained in:
滔哥
2017-12-26 16:46:59 +08:00
parent dc8ee0995e
commit e585e048b9
+4 -4
View File
@@ -20,8 +20,8 @@ class miscModel extends model
/**
* Get table and status.
*
* @param string $type
*
* @param string $type
* @access public
* @return array|false
*/
@@ -30,13 +30,13 @@ class miscModel extends model
if($type != 'check' and $type != 'repair') return false;
$tables = array();
$stmt = $this->dao->query("show full tables");
while($table = $stmt->fetch(PDO::FETCH_ASSOC))
while($table = $stmt->fetch(PDO::FETCH_ASSOC))
{
$tableName = $table["Tables_in_{$this->config->db->name}"];
$tableType = strtolower($table['Table_type']);
if($tableType == 'base table')
{
$tableStatus = $this->dao->query("$type table $tableName")->fetch();
$tableStatus = $this->dao->query("$type table $tableName")->fetch();
$tables[$tableName] = strtolower($tableStatus->Msg_text);
}
}