mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 00:49:04 +01:00
Avoid an Invalid argument warning if infolog_bo->anzSubs() returns an integer
This commit is contained in:
parent
3b1ce04608
commit
8c26a9b639
@ -1430,11 +1430,15 @@ class infolog_bo
|
|||||||
$infos[$row['info_id']]['icon'] = 'infolog/'.$icon;
|
$infos[$row['info_id']]['icon'] = 'infolog/'.$icon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach($this->anzSubs(array_keys($infos)) as $info_id => $subs)
|
$anzSubs = $this->anzSubs(array_keys($infos));
|
||||||
|
if($anzSubs && is_array($anzSubs))
|
||||||
|
{
|
||||||
|
foreach($anzSubs as $info_id => $subs)
|
||||||
{
|
{
|
||||||
if ($subs) $infos[$info_id]['class'] .= ' infolog_rowHasSubs';
|
if ($subs) $infos[$info_id]['class'] .= ' infolog_rowHasSubs';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $infos;
|
return $infos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user