From 1bab3b48e4138d9f17e2fd9e3f17a2c0fece552a Mon Sep 17 00:00:00 2001
From: Alan Garcia
Date: Sun, 26 Jan 2014 16:45:50 +0000
Subject: [PATCH] Fix #1566
---
bureau/admin/dom_subdel.php | 47 +++++++++++++++++++++--------------
bureau/admin/dom_subdodel.php | 2 +-
2 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/bureau/admin/dom_subdel.php b/bureau/admin/dom_subdel.php
index 98b3f167..d5e16714 100644
--- a/bureau/admin/dom_subdel.php
+++ b/bureau/admin/dom_subdel.php
@@ -31,13 +31,13 @@ require_once("../class/config.php");
include_once("head.php");
$fields = array (
- "sub_domain_id" => array ("request", "integer", ""),
+ "sub_domain_id" => array ("request", "integer", ""),
);
getFields($fields);
$dom->lock();
if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
- $error=$err->errstr();
+ $error=$err->errstr();
}
$dom->unlock();
@@ -48,27 +48,36 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
}
?>
- :
+ :
$error
";
- include_once("foot.php");
- exit();
- }
+if (isset($error) && $error) {
+ echo "$error
";
+ include_once("foot.php");
+ exit();
+}
?>
-
diff --git a/bureau/admin/dom_subdodel.php b/bureau/admin/dom_subdodel.php
index a6ecd678..c140a893 100644
--- a/bureau/admin/dom_subdodel.php
+++ b/bureau/admin/dom_subdodel.php
@@ -61,7 +61,7 @@ if (!$dom->del_sub_domain($sub_domain_id)) {
$dom->unlock();
?>
-
+