mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
quietened PHP Warning: in_array() expects parameter 2 to be array, boolean given on line 855
This commit is contained in:
parent
0b6954fb44
commit
9c82896a7b
@ -852,7 +852,7 @@ class egw_vfs extends vfs_stream_wrapper
|
|||||||
// check if there's a group access and we have the right membership
|
// check if there's a group access and we have the right membership
|
||||||
if (($stat['mode'] & ($check << 3)) == ($check << 3) && $stat['gid'])
|
if (($stat['mode'] & ($check << 3)) == ($check << 3) && $stat['gid'])
|
||||||
{
|
{
|
||||||
if (in_array(-abs($stat['gid']), $GLOBALS['egw']->accounts->memberships(self::$user, true)))
|
if (($memberships = $GLOBALS['egw']->accounts->memberships(self::$user, true)) && in_array(-abs($stat['gid']), $memberships))
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__."(path=$path||stat[name]={$stat['name']},stat[mode]=".sprintf('%o',$stat['mode']).",$check) access via group rights!");
|
//error_log(__METHOD__."(path=$path||stat[name]={$stat['name']},stat[mode]=".sprintf('%o',$stat['mode']).",$check) access via group rights!");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user