Return code verification on db create. Fixes #64

This commit is contained in:
Serghey Rodin 2013-03-02 19:07:39 +02:00
commit 66e94a79fe

View file

@ -64,7 +64,7 @@ if (!empty($_POST['ok'])) {
unset($v_password);
unset($output);
}
if (!empty($v_db_email)) {
if ((!empty($v_db_email)) && ($return_var != 0)) {
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"]);
if ($_POST['v_type'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
if ($_POST['v_type'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";