fixed problem with blanks in account_id of owner parameter

This commit is contained in:
Ralf Becker 2009-12-04 10:22:33 +00:00
parent 44b15c1775
commit 8a9392c681
2 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,7 @@ class calendar_bo
$users = array();
foreach($params['users'] as $user)
{
$user = trim($user);
if ($params['ignore_acl'] || $this->check_perms(EGW_ACL_READ|EGW_ACL_READ_FOR_PARTICIPANTS|EGW_ACL_FREEBUSY,0,$user))
{
if ($user && !in_array($user,$users)) // already added?

View File

@ -177,6 +177,7 @@ class calendar_ui
$no_access = $no_access_group = array();
foreach(explode(',',$this->owner) as $owner)
{
$owner = trim($owner);
if (is_numeric($owner) && $GLOBALS['egw']->accounts->get_type($owner) == 'g')
{
foreach($GLOBALS['egw']->accounts->member($owner) as $member)