Skip to content

Commit bcfe2c0

Browse files
committed
fix: undefined variable when fetching preview
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
1 parent 99c0d2d commit bcfe2c0

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
@@ -38,6 +38,7 @@ public function handle(Event $event): void {
3838
}
3939
$shareToken = $this->request->getParam('token');
4040

41+
$share = null;
4142
try {
4243
$share = $shareToken ?
4344
// Get different share for public previews as the share from the node is only set for mounted shares

0 commit comments

Comments
 (0)