diff --git a/src/Module/Post/Tag/Remove.php b/src/Module/Post/Tag/Remove.php index 1ed68e2cfa..d00e657f0f 100644 --- a/src/Module/Post/Tag/Remove.php +++ b/src/Module/Post/Tag/Remove.php @@ -78,9 +78,11 @@ class Remove extends \Friendica\BaseModule $tag_text = Tag::getCSVByURIId($item['uri-id']); $tags = explode(',', $tag_text); - if (!is_array($tags)) { + if ($tag_text === '') { $this->baseUrl->redirect($returnUrl); } + + $tags = explode(',', $tag_text); $tag_checkboxes = array_map(function ($tag_text) { return ['tag[' . bin2hex($tag_text) . ']', BBCode::toPlaintext($tag_text)];