From e472a33b23390099c82484cbc3c4ce557cac3862 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 17 Sep 2014 01:15:01 +0300 Subject: [PATCH] Call v-change-dns-domain-ip only if ip was changed --- web/edit/web/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/edit/web/index.php b/web/edit/web/index.php index 6c3ae943c..992b35941 100644 --- a/web/edit/web/index.php +++ b/web/edit/web/index.php @@ -100,7 +100,7 @@ if (!empty($_POST['save'])) { } // Chane dns domain IP - if (empty($_SESSION['error_msg'])) { + if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) { exec (VESTA_CMD."v-list-dns-domain ".$v_username." ".$v_domain." json", $output, $return_var); unset($output); if ($return_var == 0 ) { @@ -112,7 +112,7 @@ if (!empty($_POST['save'])) { } // Change dns ip for each alias - if (empty($_SESSION['error_msg'])) { + if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) { foreach($valiases as $v_alias ){ exec (VESTA_CMD."v-list-dns-domain ".$v_username." '".$v_alias."' json", $output, $return_var); unset($output);