mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-28 20:45:00 +03:00
fix install
This commit is contained in:
parent
5584a1ef7b
commit
ff3f22c26f
|
@ -227,7 +227,7 @@ abstract class InstallStep
|
|||
if (!$bResult) {
|
||||
$sError = mysqli_error($oDb);
|
||||
if (isset($aParams['skip_fk_errors']) and $aParams['skip_fk_errors'] and
|
||||
(mysqli_errno($oDb) == 152 or (stripos($sError, '_fk') !== false and stripos($sError, 'DROP') !== false))
|
||||
(stripos($sError, 'errno: 152') !== false or stripos($sError, 'errno: 150') !== false or (stripos($sError, '_fk') !== false and stripos($sError, 'DROP') !== false))
|
||||
) {
|
||||
// пропускаем ошибки связанные с внешними ключами
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue