Fix #1376
This commit is contained in:
parent
ffbc8e2831
commit
fcdaa86e47
|
@ -39,13 +39,13 @@ getFields($fields);
|
||||||
$dom->lock();
|
$dom->lock();
|
||||||
if (!$r=$dom->get_domain_all($domain)) {
|
if (!$r=$dom->get_domain_all($domain)) {
|
||||||
$error=$err->errstr();
|
$error=$err->errstr();
|
||||||
}
|
|
||||||
if (isset($error) && $error) {
|
|
||||||
// if there is an errpr error, means problems with the domain. We stop
|
|
||||||
echo "<p class=\"error\">$error</p>";
|
echo "<p class=\"error\">$error</p>";
|
||||||
include_once("foot.php");
|
include('foot.php');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
if (isset($error) && $error ) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
$dom->unlock();
|
$dom->unlock();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -70,8 +70,9 @@ if (!$r) {
|
||||||
} else {
|
} else {
|
||||||
$t = time();
|
$t = time();
|
||||||
// XXX: we assume the cron job is at every 5 minutes
|
// 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))));
|
$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");
|
include("dom_edit.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue