mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-29 17:28:36 +01:00
handling array_intersect warning if info_responsible is not an array (typecast)
This commit is contained in:
parent
03fc976ce6
commit
c2dd0ab7d1
@ -91,7 +91,7 @@ class infolog_so
|
|||||||
$user_and_memberships = $GLOBALS['egw']->accounts->memberships($this->user,true);
|
$user_and_memberships = $GLOBALS['egw']->accounts->memberships($this->user,true);
|
||||||
$user_and_memberships[] = $this->user;
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user