Explorar el Código

Return code verification on db create. Fixes #64

Serghey Rodin hace 13 años
padre
commit
66e94a79fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/add/db/index.php

+ 1 - 1
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/";