From a36ad691fc0ce056a913ec4f12765bd7a192142e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 5 Mar 2007 16:55:04 +0000 Subject: [PATCH] do not show home directory checkbox if no script path is set --- lam/lib/modules/posixAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 9e4ad57a..84fd1281 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -937,7 +937,7 @@ class posixAccount extends baseModule { 0 => array('kind' => 'text', 'text' => _('Home directory').'*'), 1 => array('kind' => 'input', 'name' => 'homeDirectory', 'type' => 'text', 'size' => '30', 'maxlength' => '255', 'value' => $this->attributes['homeDirectory'][0]), 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 $lamdaemonServers = explode(";", $_SESSION['config']->get_scriptServers()); for ($i = 0; $i < sizeof($lamdaemonServers); $i++) {