an other fix for multiple infologs from addressbook

This commit is contained in:
Ralf Becker 2008-03-31 17:33:32 +00:00
parent 29f8fd618c
commit 12f7232ee2

View File

@ -664,10 +664,9 @@ class soinfolog // DB-Layer
'event' => 'calendar' 'event' => 'calendar'
); );
$action = isset($action2app[$query['action']]) ? $action2app[$query['action']] : $query['action']; $action = isset($action2app[$query['action']]) ? $action2app[$query['action']] : $query['action'];
$action_id = ( strpos($query['action_id'],',')!==false) ? explode(',',$query['action_id']) : $query['action_id'];
if ($action != '') if ($action != '')
{ {
$links = solink::get_links($action=='sp'?'infolog':$action,$action_id,'infolog'); $links = solink::get_links($action=='sp'?'infolog':$action,explode(',',$query['action_id']),'infolog');
if (count($links)) if (count($links))
{ {
$links = call_user_func_array('array_merge',$links); // flatten the array $links = call_user_func_array('array_merge',$links); // flatten the array