]> git.mxchange.org Git - friendica.git/commitdiff
fix a fatal error when displaying photos
authorMichael <heluecht@pirati.ca>
Wed, 6 May 2020 04:58:25 +0000 (04:58 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 May 2020 04:58:25 +0000 (04:58 +0000)
mod/photos.php

index 2610174905644d103e188da0f7259fd34d697f2d..311d2b1c14e9639c1cdf7e9ed4fac9035d863f47 100644 (file)
@@ -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 = [];