mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02: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…
x
Reference in New Issue
Block a user