From 9d4f35a0fd0f620c4c3ca0d4e8e88bc3be4db056 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 24 Feb 2024 13:08:37 +0100 Subject: [PATCH] ViewPhotoAlbum: add ?in param for root tags, too This was probably intended as an optimisation, but people tags are at root level, and so id_parent == 0. --- controllers/ViewPhotoAlbum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/ViewPhotoAlbum.php b/controllers/ViewPhotoAlbum.php index f6872df..2a9c0ca 100644 --- a/controllers/ViewPhotoAlbum.php +++ b/controllers/ViewPhotoAlbum.php @@ -102,7 +102,7 @@ class ViewPhotoAlbum extends HTMLController $this->page->adopt($index); $url_params = []; - if (isset($tag) && $tag->id_parent != 0) + if (isset($tag)) $url_params['in'] = $tag->id_tag; if (!empty($active_filter)) $url_params['by'] = $active_filter;