From 52472d8b58076783389c58722db2f3d3742f2fbe Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 15 Jan 2024 11:26:17 +0100 Subject: [PATCH] ViewPhotoAlbum: add 'label' key to empty filter as well --- controllers/ViewPhotoAlbum.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/ViewPhotoAlbum.php b/controllers/ViewPhotoAlbum.php index 519ef30..ff188a3 100644 --- a/controllers/ViewPhotoAlbum.php +++ b/controllers/ViewPhotoAlbum.php @@ -50,7 +50,9 @@ class ViewPhotoAlbum extends HTMLController $filters = []; 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) { $filters[$contributor['slug']] = [