mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
More validity checking for user existence.
This commit is contained in:
parent
a2c95c9994
commit
71129da232
@ -268,7 +268,10 @@
|
|||||||
}
|
}
|
||||||
if(!isset($users[intval($id)]))
|
if(!isset($users[intval($id)]))
|
||||||
{
|
{
|
||||||
$users[intval($id)] = $phpgw->common->grab_owner_name(intval($id));
|
if($phpgw->accounts->exists(intval($id)) == True)
|
||||||
|
{
|
||||||
|
$users[intval($id)] = $phpgw->common->grab_owner_name(intval($id));
|
||||||
|
}
|
||||||
if($phpgw->accounts->get_type(intval($id)) == 'g')
|
if($phpgw->accounts->get_type(intval($id)) == 'g')
|
||||||
{
|
{
|
||||||
build_part_list($users,$phpgw->acl->get_ids_for_location(intval($id),1,'phpgw_group'),$owner);
|
build_part_list($users,$phpgw->acl->get_ids_for_location(intval($id),1,'phpgw_group'),$owner);
|
||||||
@ -281,8 +284,6 @@
|
|||||||
$accounts = $phpgw->acl->get_ids_for_location('run',1,'calendar');
|
$accounts = $phpgw->acl->get_ids_for_location('run',1,'calendar');
|
||||||
$users = Array();
|
$users = Array();
|
||||||
build_part_list($users,$accounts,$owner);
|
build_part_list($users,$accounts,$owner);
|
||||||
// unset($users[$owner]);
|
|
||||||
echo "Owner = ".$users[$owner]."<br>\n";
|
|
||||||
while(list($key,$status) = each($event->participants))
|
while(list($key,$status) = each($event->participants))
|
||||||
{
|
{
|
||||||
$parts[$key] = ' selected';
|
$parts[$key] = ' selected';
|
||||||
@ -298,7 +299,7 @@ echo "Owner = ".$users[$owner]."<br>\n";
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
elseif($phpgw->accounts->exists($id) == True)
|
else
|
||||||
{
|
{
|
||||||
$str .= ' <option value="' . $id . '"'.$parts[$id].'>('.$phpgw->accounts->get_type($id).') '.$name.'</option>'."\n";
|
$str .= ' <option value="' . $id . '"'.$parts[$id].'>('.$phpgw->accounts->get_type($id).') '.$name.'</option>'."\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user