Explorar o código

Merge pull request #608 from cdnmall/patch-10

Fixed incorrect variables for PostgreSQL Support
Serghey Rodin %!s(int64=9) %!d(string=hai) anos
pai
achega
0100238290
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      web/edit/server/index.php

+ 2 - 2
web/edit/server/index.php

@@ -59,7 +59,7 @@ exec (VESTA_CMD."v-list-database-hosts pgsql json", $output, $return_var);
 $v_pgsql_hosts = json_decode(implode('', $output), true);
 $v_pgsql_hosts = json_decode(implode('', $output), true);
 unset($output);
 unset($output);
 foreach ($v_pgsql_hosts as $key => $value) {
 foreach ($v_pgsql_hosts as $key => $value) {
-    $v_psql = 'yes';
+    $v_pgsql = 'yes';
 }
 }
 
 
 // List backup settings
 // List backup settings
@@ -207,7 +207,7 @@ if (!empty($_POST['save'])) {
 
 
     // Update phpPgAdmin url
     // Update phpPgAdmin url
     if (empty($_SESSION['error_msg'])) {
     if (empty($_SESSION['error_msg'])) {
-        if ($_POST['v_psql_url'] != $_SESSION['DB_PGA_URL']) {
+        if ($_POST['v_pgsql_url'] != $_SESSION['DB_PGA_URL']) {
             exec (VESTA_CMD."v-change-sys-config-value DB_PGA_URL '".escapeshellarg($_POST['v_pgsql_url'])."'", $output, $return_var);
             exec (VESTA_CMD."v-change-sys-config-value DB_PGA_URL '".escapeshellarg($_POST['v_pgsql_url'])."'", $output, $return_var);
             check_return_code($return_var,$output);
             check_return_code($return_var,$output);
             unset($output);
             unset($output);