Skip to content

Commit 2ee2e49

Browse files
committed
Merge pull request #1863 from kainhofer/MultiOrgMemberHandling
Fix crash when adding member from different org (navigation URL stack was accessed with non-existing index)
1 parent 793f521 commit 2ee2e49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Application/Navigation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ public function getStack(): array
170170
*/
171171
public function getStackEntryUrl(int $index): string
172172
{
173-
return $this->urlStack[$index]['url'];
173+
if (isset($this->urlStack[$index])) {
174+
return $this->urlStack[$index]['url'];
175+
} else {
176+
return '';
177+
}
174178
}
175179

176180
/**

0 commit comments

Comments
 (0)