aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xuserdrake8
1 files changed, 4 insertions, 4 deletions
diff --git a/userdrake b/userdrake
index a4b1374..19c02af 100755
--- a/userdrake
+++ b/userdrake
@@ -716,8 +716,8 @@ sub Edit {
if (InArray($name, $members)) {
$uEnt = $ctx->LookupUserByName($name);
if ($uEnt->Gid($GetValue) == $groupEnt->Gid($GetValue)) {
- $model->set($iter, [0 => gtkcreate_pixbuf($pix[0])]);
- $model->set($iter, [2 => 1]);
+ $model->set($iter, 0 => gtkcreate_pixbuf($pix[0]));
+ $model->set($iter, 2 => 1);
RaiseError(N("You cannot remove user '%s' from their primary group", $name));
}
if (!$error) {
@@ -767,8 +767,8 @@ sub Edit {
return unless $iter;
my $cp = $model->get($iter, 2);
my $item = $model->get($iter, 1);
- $model->set($iter, [0 => gtkcreate_pixbuf($pix[$cp])]);
- $model->set($iter, [2 => !$cp]);
+ $model->set($iter, 0 => gtkcreate_pixbuf($pix[$cp]));
+ $model->set($iter, 2 => !$cp);
if ($p <= 0) {
if (!$cp) {
!InArray($item, \@primgroup) and push(@primgroup, $item)