Skip to content

Commit 66e94a7

Browse files
committed
Return code verification on db create. Fixes hestiacp#64
1 parent 597a92e commit 66e94a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/add/db/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
unset($v_password);
6565
unset($output);
6666
}
67-
if (!empty($v_db_email)) {
67+
if ((!empty($v_db_email)) && ($return_var != 0)) {
6868
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"]);
6969
if ($_POST['v_type'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
7070
if ($_POST['v_type'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";

0 commit comments

Comments
 (0)