From fcdaa86e473250dcb4a3dd272d89a6d90137568a Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Mon, 12 Nov 2012 17:00:53 +0000 Subject: [PATCH] Fix #1376 --- bureau/admin/dom_edit.php | 8 ++++---- bureau/admin/dom_subdoedit.php | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php index b6e28367..cef9455b 100644 --- a/bureau/admin/dom_edit.php +++ b/bureau/admin/dom_edit.php @@ -39,13 +39,13 @@ getFields($fields); $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"); + include('foot.php'); die(); } +if (isset($error) && $error ) { + echo "

$error

"; +} $dom->unlock(); ?> diff --git a/bureau/admin/dom_subdoedit.php b/bureau/admin/dom_subdoedit.php index e0df0e82..67e7b5bd 100644 --- a/bureau/admin/dom_subdoedit.php +++ b/bureau/admin/dom_subdoedit.php @@ -70,8 +70,9 @@ if (!$r) { } else { $t = time(); // XXX: we assume the cron job is at every 5 minutes + $noread=false; $error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300)))); - foreach($fields as $k=>$v) unset($k); + foreach($fields as $k=>$v) unset($$k); } include("dom_edit.php"); exit;