forked from extern/egroupware
Avoid warning on missing accessories
This commit is contained in:
parent
0cfed6ba11
commit
4aa875b885
@ -312,9 +312,11 @@ class resources_bo
|
|||||||
if($res_id < 1){return;}
|
if($res_id < 1){return;}
|
||||||
$data = $this->so->search('','res_id,name','','','','','',$start,array('accessory_of' => $res_id),'',$need_full_no_count=true);
|
$data = $this->so->search('','res_id,name','','','','','',$start,array('accessory_of' => $res_id),'',$need_full_no_count=true);
|
||||||
$acc_list = array();
|
$acc_list = array();
|
||||||
foreach($data as $num => $resource)
|
if($data) {
|
||||||
{
|
foreach($data as $num => $resource)
|
||||||
$acc_list[$resource['res_id']] = $resource['name'];
|
{
|
||||||
|
$acc_list[$resource['res_id']] = $resource['name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $acc_list;
|
return $acc_list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user