From 180b4e51df44b0ade94a54c88e0c5def5718f475 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 6 May 2020 04:58:25 +0000 Subject: [PATCH] fix a fatal error when displaying photos --- mod/photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 2610174905..311d2b1c14 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1307,9 +1307,9 @@ function photos_content(App $a) } $tags = null; - $tag_text = Tag::getCSVByURIId($link_item['uri-id']); - if (!empty($link_item['id']) && !empty($tag_text)) { + if (!empty($link_item['id'])) { + $tag_text = Tag::getCSVByURIId($link_item['uri-id']); $arr = explode(',', $tag_text); // parse tags and add links $tag_arr = [];