mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
fix PHP Notice: Undefined offset
This commit is contained in:
parent
9baa79de5e
commit
a10b772516
@ -557,8 +557,8 @@ class Categories
|
|||||||
$owner_grant = false;
|
$owner_grant = false;
|
||||||
foreach(explode(',',$category['owner']) as $owner)
|
foreach(explode(',',$category['owner']) as $owner)
|
||||||
{
|
{
|
||||||
$owner_grant = $owner_grant || (is_array($this->grants) && ($this->grants[$owner] & $needed) &&
|
$owner_grant = $owner_grant || (is_array($this->grants) && !empty($this->grants[$owner]) && ($this->grants[$owner] & $needed) &&
|
||||||
($category['access'] == 'public' || ($this->grants[$owner] & Acl::PRIVAT)));
|
($category['access'] === 'public' || ($this->grants[$owner] & Acl::PRIVAT)));
|
||||||
}
|
}
|
||||||
return $acl_grant && $owner_grant;
|
return $acl_grant && $owner_grant;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user