From feb65c8ddf6926ba321596b7f85ddc82191e0271 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 15 Apr 2013 08:06:32 +0000 Subject: [PATCH] Meme buge que r4218 --- bureau/admin/dom_subdodel.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bureau/admin/dom_subdodel.php b/bureau/admin/dom_subdodel.php index 19bce85f..72724942 100644 --- a/bureau/admin/dom_subdodel.php +++ b/bureau/admin/dom_subdodel.php @@ -35,8 +35,15 @@ $fields = array ( ); getFields($fields); +$dom->lock(); +if (!$r=$dom->get_sub_domain_all($sub_domain_id)) { + $error=$err->errstr(); +} +$dom->unlock(); + + $dt=$dom->domains_type_lst(); -if (!$isinvited && $dt[strtolower($type)]["enable"] != "ALL" ) { +if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) { __("This page is restricted to authorized staff"); exit(); }