X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finstall-inc.php;h=83571f7071a58847cf8cd188152fa28142a5db2c;hb=d51f5ef507bcec57c8bc26e444a99db81b5ca040;hp=c45dc021bd2bcb9c67a6c271cd8389e319d8dc21;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index c45dc021bd..83571f7071 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -100,7 +100,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) { if (empty($mysql['host'])) $mysql['host'] = 'localhost'; if (empty($mysql['prefix'])) $mysql['prefix'] = 'mxchange'; if (empty($mysql['type'])) $mysql['type'] = 'MyISAM'; - if (getTotalFatalErrors() > 0) { + if (ifFatalErrorsDetected()) { addToInstallContent('
'.print_r(getSqls(), true).''); // Are some SQLs found? - if (countSqls() == '0') { + if (countSqls() == 0) { // Abort here addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_SQL_IMPORT_FAILED')); return; @@ -243,7 +243,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) { } // END - if } // END - if - if (getTotalFatalErrors() > 0) { + if (ifFatalErrorsDetected()) { $OUT = ''; foreach (getFatalArray() as $value) { $OUT .= '