Skip to content

Commit cf33f44

Browse files
elzodybackportbot[bot]
authored andcommitted
fix: undefined variable when fetching preview
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
1 parent 4a7bbb0 commit cf33f44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Listener/BeforeFetchPreviewListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function handle(Event $event): void {
4343
}
4444
$shareToken = $this->request->getParam('token');
4545

46+
$share = null;
4647
try {
4748
$share = $shareToken ?
4849
// Get different share for public previews as the share from the node is only set for mounted shares

0 commit comments

Comments
 (0)