You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +03:00
AliasdomainHandler.php - initStruct():
- if only one alias_domain available, filter it out from target_domain list git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1271 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -45,6 +45,11 @@ class AliasdomainHandler extends PFAHandler {
|
|||||||
if (isset($used_targets[$dom])) unset ($this->struct['alias_domain']['options'][$dom]); # don't allow chained domain aliases (domain1 -> domain2 -> domain3)
|
if (isset($used_targets[$dom])) unset ($this->struct['alias_domain']['options'][$dom]); # don't allow chained domain aliases (domain1 -> domain2 -> domain3)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count($this->struct['alias_domain']['options']) == 1) { # only one alias_domain available - filter it out from target_domain list
|
||||||
|
$keys = array_keys($this->struct['alias_domain']['options']);
|
||||||
|
unset ($this->struct['target_domain']['options'][$keys[0]]);
|
||||||
|
}
|
||||||
|
|
||||||
# TODO: hook to modify $this->struct
|
# TODO: hook to modify $this->struct
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user