]> git.mxchange.org Git - mailer.git/blobdiff - inc/ajax/ajax_installer.php
More fixes for new installer and script in general :(
[mailer.git] / inc / ajax / ajax_installer.php
index 1fedf138f03ac6fb463ccae4ab03854486501340..055d00270adb4890f715c3dcc112cb4113991b5b 100644 (file)
@@ -52,6 +52,9 @@ function establishAjaxInstallerDatabaseLink () {
                reportBug(__FUNCTION__, __LINE__, 'Required session data for this step not found.');
        } // END - if
 
+       // Remove any previous flag
+       unsetSqlLinkUp(__FUNCTION__, __LINE__);
+
        // Establish link
        $linkResource = SQL_CONNECT(getSession('mysql_host'), getSession('mysql_login'), getSession('mysql_password1'), __FUNCTION__, __LINE__);
 
@@ -628,9 +631,6 @@ function doAjaxInstallerStepInstallExtensions () {
                        reportBug(__FUNCTION__, __LINE__, 'Cannot load/register extension ' . $ext_name . '.');
                } // END - if
        } // END - foreach
-
-       // Close SQL link
-       SQL_CLOSE(__FUNCTION__, __LINE__);
 }
 
 // Call-back function to write local configuration file