do not redirect if record id has not been changed

This commit is contained in:
Serghey Rodin 2013-05-31 11:23:12 +03:00
commit 46e2527c5a

View file

@ -212,7 +212,7 @@ if ((!empty($_GET['domain'])) && (empty($_GET['record_id']))) {
$_SESSION['ok_msg'] = __('Changes has been saved.');
}
if ($_GET['record_id'] != $_POST['v_record_id']) {
if ((empty($_SESSION['error_msg'])) && ($_GET['record_id'] != $_POST['v_record_id'])) {
header("Location: /edit/dns/?domain=".$_GET['domain']."&record_id=".$_POST['v_record_id']);
exit;
}