X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagrm.php;h=4022f999db3c04a87b7130e3d358dca6e2a0a1db;hb=8eeb7807d3cf7c0490299b7540ca06f4d091217c;hp=7e8ae8524b92a78a8be0a4cddfcc3549e62766a6;hpb=7de6e60328a6b5878f988f3421d5beabd0264d4a;p=friendica.git diff --git a/mod/tagrm.php b/mod/tagrm.php index 7e8ae8524b..4022f999db 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -97,15 +97,16 @@ function tagrm_content(App $a) // NOTREACHED } - $item = Item::selectFirst(['tag'], ['id' => $item_id, 'uid' => local_user()]); + $item = Item::selectFirst(['uri-id'], ['id' => $item_id, 'uid' => local_user()]); if (!DBA::isResult($item)) { DI::baseUrl()->redirect($_SESSION['photo_return']); } - $arr = explode(',', $item['tag']); + $tag_text = Tag::getCSVByURIId($item['uri-id']); + $arr = explode(',', $tag_text); - if (empty($item['tag'])) { + if (empty($arr)) { DI::baseUrl()->redirect($_SESSION['photo_return']); }