This commit is contained in:
Alan Garcia 2012-11-08 19:43:24 +00:00
parent 3cdfda851d
commit f209fdfa76
1 changed files with 6 additions and 5 deletions

View File

@ -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 "<p class=\"error\">$error</p>";
include_once("foot.php");
die();
}
$dom->unlock();
?>
@ -66,11 +72,6 @@ function dnsoff() {
}
</script>
<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
<?php
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
?>
<hr id="topbar"/>
<?php