From f209fdfa7632e5ccf77f97caf452874daa42e59e Mon Sep 17 00:00:00 2001
From: Alan Garcia
Date: Thu, 8 Nov 2012 19:43:24 +0000
Subject: [PATCH] Fix #1368
---
bureau/admin/dom_edit.php | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php
index ddb76c21..b6e28367 100644
--- a/bureau/admin/dom_edit.php
+++ b/bureau/admin/dom_edit.php
@@ -40,6 +40,12 @@ $dom->lock();
if (!$r=$dom->get_domain_all($domain)) {
$error=$err->errstr();
}
+if (isset($error) && $error) {
+ // if there is an errpr error, means problems with the domain. We stop
+ echo "$error
";
+ include_once("foot.php");
+ die();
+}
$dom->unlock();
?>
@@ -66,11 +72,6 @@ function dnsoff() {
}
-$error
";
- }
-?>