fixes for each() error

This commit is contained in:
skeeter 2001-03-16 04:28:23 +00:00
parent 3efdfd03d2
commit b3ac135a54
2 changed files with 17 additions and 1 deletions

View File

@ -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))
{

View File

@ -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))
{