mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +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;
|
||||
foreach(explode(',',$category['owner']) as $owner)
|
||||
{
|
||||
$owner_grant = $owner_grant || (is_array($this->grants) && ($this->grants[$owner] & $needed) &&
|
||||
($category['access'] == 'public' || ($this->grants[$owner] & Acl::PRIVAT)));
|
||||
$owner_grant = $owner_grant || (is_array($this->grants) && !empty($this->grants[$owner]) && ($this->grants[$owner] & $needed) &&
|
||||
($category['access'] === 'public' || ($this->grants[$owner] & Acl::PRIVAT)));
|
||||
}
|
||||
return $acl_grant && $owner_grant;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user