diff --git a/addressbook/acl_preferences.php b/addressbook/acl_preferences.php index 00e7c78788..776e11b049 100755 --- a/addressbook/acl_preferences.php +++ b/addressbook/acl_preferences.php @@ -91,6 +91,10 @@ // Group records $group_variable = 'g_'.$phpgw_info['flags']['currentapp']; + if (!$$group_variable) + { + $$group_variable = array(); + } @reset($$group_variable); while(list($group_id,$acllist) = each($$group_variable)) { @@ -105,6 +109,10 @@ // User records $user_variable = 'u_'.$phpgw_info['flags']['currentapp']; + if (!$$user_variable) + { + $$user_variable = array(); + } @reset($$user_variable); while(list($user_id,$acllist) = each($$user_variable)) { diff --git a/calendar/acl_preferences.php b/calendar/acl_preferences.php index 98c01b9871..d8d0647799 100755 --- a/calendar/acl_preferences.php +++ b/calendar/acl_preferences.php @@ -92,6 +92,10 @@ // Group records $group_variable = 'g_'.$phpgw_info['flags']['currentapp']; + if (!$$group_variable) + { + $$group_variable = array(); + } @reset($$group_variable); while(list($group_id,$acllist) = each($$group_variable)) { @@ -105,7 +109,11 @@ // User records $user_variable = 'u_'.$phpgw_info['flags']['currentapp']; - + + if (!$$user_variable) + { + $$user_variable = array(); + } @reset($$user_variable); while(list($user_id,$acllist) = each($$user_variable)) {