Skip to content

Commit f00ec9b

Browse files
authored
check unset entries
1 parent 315e517 commit f00ec9b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/WAC.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,12 @@ private function getParentUri($uri) {
490490
}
491491
private function getWACGrants($grants, $uri) {
492492
$wacGrants = array();
493-
493+
if (!isset($grants['accessTo'])) {
494+
$grants['accessTo'] = [];
495+
}
496+
if (!isset($grants['default'])) {
497+
$grants['default'] = [];
498+
}
494499
foreach ((array)$grants['accessTo'] as $grant => $grantedUri) {
495500
if ($this->arePathsEqual($grantedUri, $uri)) {
496501
$wacGrants[] = $this->grantToWac($grant);

0 commit comments

Comments
 (0)