fixed display of homedir checkbox on account deletion

This commit is contained in:
Roland Gruber 2005-04-05 11:43:19 +00:00
parent 26c9bb756e
commit 82b4345780
1 changed files with 5 additions and 4 deletions

View File

@ -855,10 +855,11 @@ class posixAccount extends baseModule {
}
function display_html_delete(&$post) {
if ($_SESSION[$this->base]->type=='user' && isset($_SESSION['config']->scriptPath)) {
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Delete home directory') ),
1 => array ( 'kind' => 'input', 'name' => 'deletehomedir', 'type' => 'checkbox'),
2 => array ('kind' => 'help', 'value' => 'deletehomedir'));
if ($this->scope == 'user' && isset($_SESSION['config']->scriptPath)) {
$return[] = array (
0 => array('kind' => 'text', 'text' => _('Delete home directory')),
1 => array('kind' => 'input', 'name' => 'deletehomedir', 'type' => 'checkbox'),
2 => array('kind' => 'help', 'value' => 'deletehomedir'));
}
return $return;
}