完善对错误码的检查

This commit is contained in:
joyqi
2013-11-27 16:38:40 +08:00
parent 14fc3ee8e0
commit ecd7b5b8cf

View File

@@ -360,7 +360,7 @@ list($prefixVersion, $suffixVersion) = explode('/', $currentVersion);
<div class="typecho-install-body">
<form method="post" action="?start" name="check">
<?php
if(('Mysql' == $type && 1050 == $code) ||
if(('Mysql' == $type && (1050 == $code || '42S01' == $code)) ||
('SQLite' == $type && ('HY000' == $code || 1 == $code)) ||
('Pgsql' == $type && '42P07' == $code)) {
if(_r('delete')) {