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.
This commit is contained in:
Aaron van Geffen 2024-02-24 13:08:37 +01:00
parent f0d286179a
commit 9d4f35a0fd

View File

@ -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;