diff --git a/admin/inc/class.admin_account.inc.php b/admin/inc/class.admin_account.inc.php index b0604fb76d..f229961b3d 100644 --- a/admin/inc/class.admin_account.inc.php +++ b/admin/inc/class.admin_account.inc.php @@ -199,7 +199,8 @@ class admin_account } } // Make sure primary group is in account groups - if ($account['account_primary_group'] && !in_array($account['account_primary_group'], (array)$account['account_groups'])) + if (isset($account['account_groups']) && $account['account_primary_group'] && + !in_array($account['account_primary_group'], (array)$account['account_groups'])) { $account['account_groups'][] = $account['account_primary_group']; }