Repository: outroll/vesta (language: php)

Issue:
is this line correct?
i am not sure. but i think this should not corect
https://github.com/serghey-rodin/vesta/blob/22f3dd11e2b89ff45f1209164ed98b1678828da3/web/api/v1/edit/server/index.php#L639


Discussion / hints:
![](https://github.trello.services/images/mini-trello-icon.png) [is this line correct?](https://trello.com/c/nCjiiXuj/187-is-this-line-correct)

Fix patch:
diff --git a/web/api/v1/edit/server/index.php b/web/api/v1/edit/server/index.php
index 58ba4789b9..77a4432553 100644
--- a/web/api/v1/edit/server/index.php
+++ b/web/api/v1/edit/server/index.php
@@ -636,7 +636,7 @@
     'mail_system' => $_SESSION['MAIL_SYSTEM'],
     'antivirus_system' => $_SESSION['ANTIVIRUS_SYSTEM'],
     'antispam_system' => $_SESSION['ANTISPAM_SYSTEM'],
-    'mail_url' => $_SESSION['DB_PMA_URL'],
+    'mail_url' => $_SESSION['MAIL_URL'],
     'pgsql_url' => $_SESSION['DB_PGA_URL'],
     'mail_certificate' => $_SESSION['MAIL_CERTIFICATE'],
     'dns_system' => $_SESSION['DNS_SYSTEM'],


Test patch: