diff --git a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php index 0c76f0e1742d6..d7062b2338dea 100644 --- a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php +++ b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php @@ -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 {