Skip to content

Commit

Permalink
Fix log spamming for shares without label
Browse files Browse the repository at this point in the history
Fixes #49682

Signed-off-by: Dennis1993 <[email protected]>
  • Loading branch information
Dennis1993 authored Jan 17, 2025
1 parent 6afe125 commit dc1b912
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function renderPage(IShare $share, string $token, string $path): Template
$response->setContentSecurityPolicy($csp);

// If the share has a label, use it as the title
if ($share->getLabel() !== '') {
if (!empty($share->getLabel())) {
$response->setHeaderTitle($share->getLabel());
$response->setParams(['pageTitle' => $share->getLabel()]);
} else {
Expand Down

0 comments on commit dc1b912

Please sign in to comment.