Skip to content
Snippets Groups Projects
Commit 99ca0f7a authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#3261 - APS Deletes error folder

parent 5fbd5747
No related branches found
No related tags found
1 merge request!58Stable 3.0.5
...@@ -373,14 +373,16 @@ class ApsInstaller extends ApsBase ...@@ -373,14 +373,16 @@ class ApsInstaller extends ApsBase
/* Test if the new mysql connection is laready working to ensure that db servers in multiserver /* Test if the new mysql connection is laready working to ensure that db servers in multiserver
setups get enough time to create the database */ setups get enough time to create the database */
for($n = 1; $n < 15; $n++) { if($this->handle_type == 'install') {
$mysqli = new mysqli($newdb_host, $newdb_login, $newdb_pw, $newdb_name); for($n = 1; $n < 15; $n++) {
if ($mysqli->connect_error) { $link = mysql_connect($newdb_host, $newdb_login, $newdb_pw);
unset($mysqli); if (!$link) {
sleep(5); unset($link);
} else { sleep(5);
unset($mysqli); } else {
break; unset($link);
break;
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment