handling array_intersect warning if info_responsible is not an array

This commit is contained in:
Klaus Leithoff 2009-03-27 13:40:49 +00:00
parent 1baaa6cd01
commit 03fc976ce6

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($info['info_responsible'],$user_and_memberships);
return $info['info_responsible'] && array_intersect(array($info['info_responsible']),$user_and_memberships);
}
/**