From 9fc3c9b55bde604815d031ff3560e1ed3dbe0ebf Mon Sep 17 00:00:00 2001 From: shrykedude Date: Thu, 6 Nov 2003 23:08:10 +0000 Subject: [PATCH] var check to make sure groups array is set before examining it, to eliminate PHP warning --- admin/inc/class.boaccounts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index 399174653f..852b5e75b0 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -591,7 +591,7 @@ 'account_expires_never' => $_POST['never_expires'] /* 'file_space' => $_POST['account_file_space_number'] . "-" . $_POST['account_file_space_type'] */ ); - if ($userData['account_primary_group'] && !in_array($userData['account_primary_group'],$userData['account_groups'])) + if ($userData['account_primary_group'] && (!isset($userData['account_groups']) || !in_array($userData['account_primary_group'],$userData['account_groups']))) { $userData['account_groups'][] = intval($userData['account_primary_group']); }