ViewPhotoAlbum: add 'label' key to empty filter as well

This commit is contained in:
Aaron van Geffen 2024-01-15 11:26:17 +01:00
parent 5d990501f6
commit 52472d8b58
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ class ViewPhotoAlbum extends HTMLController
$filters = []; $filters = [];
if (!empty($contributors)) if (!empty($contributors))
{ {
$filters[''] = ['id_user' => null, 'caption' => 'Show all photos', 'link' => $tag->getUrl()]; $filters[''] = ['id_user' => null, 'label' => '', 'caption' => 'Show all photos',
'link' => $tag->getUrl()];
foreach ($contributors as $contributor) foreach ($contributors as $contributor)
{ {
$filters[$contributor['slug']] = [ $filters[$contributor['slug']] = [