handling array_intersect warning if info_responsible is not an array (typecast)

This commit is contained in:
Klaus Leithoff 2009-03-27 14:10:18 +00:00
parent 03fc976ce6
commit c2dd0ab7d1

View File

@ -91,7 +91,7 @@ class infolog_so
$user_and_memberships = $GLOBALS['egw']->accounts->memberships($this->user,true);
$user_and_memberships[] = $this->user;
}
return $info['info_responsible'] && array_intersect(array($info['info_responsible']),$user_and_memberships);
return $info['info_responsible'] && array_intersect((array)$info['info_responsible'],$user_and_memberships);
}
/**