From 03da48ccae83abbd7175354738d03329d533fe1e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 6 Apr 2014 16:39:51 +0000 Subject: [PATCH] fixed problem in delete view --- lam/lib/modules/posixAccount.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 3cb075ea..2ba4754f 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -1499,6 +1499,9 @@ class posixAccount extends baseModule implements passwordService { $return->addElement(new htmlTableExtendedInputCheckbox('deletehomedir', true, _('Delete home directory'), 'deletehomedir'), true); } if (($this->get_scope() == 'user') && in_array('sudo', $_SESSION['config']->get_ActiveTypes())) { + if ($return == null) { + $return = new htmlTable(); + } $return->addElement(new htmlTableExtendedInputCheckbox('deleteSudoers', true, _('Delete sudo rights'), 'deleteSudoers'), true); } return $return;