do not show home directory checkbox if no script path is set
This commit is contained in:
parent
b3a2f33377
commit
a36ad691fc
|
@ -937,7 +937,7 @@ class posixAccount extends baseModule {
|
||||||
0 => array('kind' => 'text', 'text' => _('Home directory').'*'),
|
0 => array('kind' => 'text', 'text' => _('Home directory').'*'),
|
||||||
1 => array('kind' => 'input', 'name' => 'homeDirectory', 'type' => 'text', 'size' => '30', 'maxlength' => '255', 'value' => $this->attributes['homeDirectory'][0]),
|
1 => array('kind' => 'input', 'name' => 'homeDirectory', 'type' => 'text', 'size' => '30', 'maxlength' => '255', 'value' => $this->attributes['homeDirectory'][0]),
|
||||||
2 => array('kind' => 'help', 'value' => 'homeDirectory'));
|
2 => array('kind' => 'help', 'value' => 'homeDirectory'));
|
||||||
if ($_SESSION[$this->base]->isNewAccount && isset($_SESSION['config']->scriptPath)) {
|
if ($_SESSION[$this->base]->isNewAccount && isset($_SESSION['config']->scriptPath) && ($_SESSION['config']->scriptPath != '')) {
|
||||||
// get list of lamdaemon servers
|
// get list of lamdaemon servers
|
||||||
$lamdaemonServers = explode(";", $_SESSION['config']->get_scriptServers());
|
$lamdaemonServers = explode(";", $_SESSION['config']->get_scriptServers());
|
||||||
for ($i = 0; $i < sizeof($lamdaemonServers); $i++) {
|
for ($i = 0; $i < sizeof($lamdaemonServers); $i++) {
|
||||||
|
|
Loading…
Reference in New Issue