From b3ac135a545539eac8f3d020ba7bc9b777b1daf3 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 16 Mar 2001 04:28:23 +0000 Subject: [PATCH] fixes for each() error --- addressbook/acl_preferences.php | 8 ++++++++ calendar/acl_preferences.php | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) 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)) {