Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix log spamming for shares without label
Fixes #49682

Signed-off-by: Dennis1993 <[email protected]>
  • Loading branch information
Dennis1993 authored Jan 17, 2025
commit dc1b912c66d94c7fa524954a94263f337586503d
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
Loading