diff --git a/infolog/inc/class.infolog_merge.inc.php b/infolog/inc/class.infolog_merge.inc.php index a38b67eb46..a837df7a1b 100644 --- a/infolog/inc/class.infolog_merge.inc.php +++ b/infolog/inc/class.infolog_merge.inc.php @@ -135,11 +135,7 @@ class infolog_merge extends bo_merge { $timesheets = array(); $links = egw_link::get_links('infolog',$id,'timesheet'); - foreach($links as $link) - { - $timesheets[] = $link['id']; - } - $sum = ExecMethod('timesheet.timesheet_bo.sum',$timesheets); + $sum = ExecMethod('timesheet.timesheet_bo.sum',$links); $info['$$info_sum_timesheets$$'] = $sum['duration']; }