This commit is contained in:
skeeter 2001-06-23 02:00:12 +00:00
parent 960a50b148
commit 36ee6b1dc2
2 changed files with 3 additions and 2 deletions

View File

@ -569,6 +569,7 @@
$security = "('". $this->account_id ."'"; $security = "('". $this->account_id ."'";
$myaccounts = CreateObject('phpgwapi.accounts'); $myaccounts = CreateObject('phpgwapi.accounts');
$my_memberships = $myaccounts->memberships($this->account_id); $my_memberships = $myaccounts->memberships($this->account_id);
unset($myaccounts);
@reset($my_memberships); @reset($my_memberships);
while($my_memberships && list($key,$group) = each($my_memberships)) while($my_memberships && list($key,$group) = each($my_memberships))
{ {

View File

@ -410,8 +410,8 @@
{ {
if (ereg('enable_',$phpgw_class_name[0])) if (ereg('enable_',$phpgw_class_name[0]))
{ {
$enable_class = ereg_replace('enable_','',$phpgw_class_name[0]); $enable_class = str_replace('enable_','',$phpgw_class_name[0]);
$enable_class = ereg_replace('_class','',$enable_class); $enable_class = str_replace('_class','',$enable_class);
eval('$phpgw->' . $enable_class . ' = createobject(\'phpgwapi.' . $enable_class . '\');'); eval('$phpgw->' . $enable_class . ' = createobject(\'phpgwapi.' . $enable_class . '\');');
} }
} }