Fix #254: Creating default domains for new members fails

A typo caused the check to see if domain delegation was allowed to
always fail.
This commit is contained in:
Kienan Stewart 2018-06-14 10:50:28 -04:00
parent 71ed8bf5f4
commit ce80e3cdad
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ class m_admin {
}
// Check if this domain exist on this admin account
if ((!in_array($domain_name, $dom->enum_domains()))&&($domaine_name!=variable_get("hosting_tld"))) {
if ((!in_array($domain_name, $dom->enum_domains()))&&($domain_name!=variable_get("hosting_tld"))) {
$msg->raise("ERROR", "admin", _("You don't seem to be allowed to delegate this domain"));
$msg->log("admin", "add_shared_domain", "domain not allowed");
return false;