Merge pull request #8591 from annando/fix-fatal

fix a fatal error when displaying photos
This commit is contained in:
Hypolite Petovan 2020-05-06 10:26:46 -04:00 committed by GitHub
commit 8a86171a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1307,9 +1307,9 @@ function photos_content(App $a)
} }
$tags = null; $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); $arr = explode(',', $tag_text);
// parse tags and add links // parse tags and add links
$tag_arr = []; $tag_arr = [];