From 66e94a79fea2ab00f4493e94c9022ecc4b16b0b0 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 2 Mar 2013 19:07:39 +0200 Subject: [PATCH] Return code verification on db create. Fixes #64 --- web/add/db/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/add/db/index.php b/web/add/db/index.php index 16d555fe..e8ce8fd8 100644 --- a/web/add/db/index.php +++ b/web/add/db/index.php @@ -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/";