* adjust for check table.

This commit is contained in:
wangyidong
2017-04-18 17:06:33 +08:00
parent 0832e0e231
commit 975a7b53c7
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -1308,10 +1308,10 @@ class baseDAO
$errorCode = $errorInfo[1];
$errorMsg = $errorInfo[2];
$message = $exception->getMessage();
if(strpos($this->repairCode, "|$errorCode|") !== false or ($errorCode == '1016' and strpos($errorMsg, 'errno: 145') !== false))
if(strpos($this->repairCode, "|$errorCode|") !== false or ($errorCode == '1016' and strpos($errorMsg, 'errno: 145') !== false) or strpos($message, 'repair') !== false)
{
global $config;
if(isset($config->framework->autoRepairTable) and $config->framework->autoRepairTable) die(js::locate(helper::createLink('misc', 'checkTable')));
if(isset($config->framework->autoRepairTable) and $config->framework->autoRepairTable) die(js::locate(helper::createLink('misc', 'checkTable'), 'top'));
$message .= ' ' . $this->lang->repairTable;
}
$sql = $this->sqlobj->get();
+5 -2
View File
@@ -46,5 +46,8 @@
</div>
<?php endif;?>
</div>
<?php include '../../common/view/footer.lite.html.php';?>
<script laguage='Javascript'>
<?php if(isset($pageJS)) echo $pageJS;?>
</script>
</body>
</html>