From d2b02d07b43ff43cc2f3875f6ddb16f76f525bc2 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 26 Jun 2023 05:32:33 +0000 Subject: [PATCH] Invert condition --- src/Model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/User.php b/src/Model/User.php index 742b8555d7..854961154b 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -1227,7 +1227,7 @@ class User DBA::update('user', $fields, ['uid' => $uid]); $def_gid_groups = Circle::create($uid, DI::l10n()->t('Groups')); - if (!$def_gid_groups) { + if ($def_gid_groups) { DI::pConfig()->set($uid, 'system', 'default-group-gid', $def_gid_groups); } -- 2.39.5