We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3525b46 commit f9d02fcCopy full SHA for f9d02fc
web/add/db/index.php
@@ -121,13 +121,11 @@
121
122
// List available database servers
123
$db_hosts = array();
124
-foreach ($db_types as $db_type ) {
125
- exec (VESTA_CMD."v-list-database-hosts ".$db_type." 'json'", $output, $return_var);
126
- $db_hosts_tmp = json_decode(implode('', $output), true);
127
- $db_hosts = array_merge($db_hosts, $db_hosts_tmp);
128
- unset($db_hosts_tmp);
129
- unset($output);
130
-}
+exec (VESTA_CMD."v-list-database-hosts 'json'", $output, $return_var);
+$db_hosts_tmp = json_decode(implode('', $output), true);
+$db_hosts = array_merge($db_hosts, $db_hosts_tmp);
+unset($db_hosts_tmp);
+unset($output);
131
132
// Display body
133
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_db.html');
0 commit comments