From: Artur Weigandt Date: Mon, 18 Nov 2024 21:40:05 +0000 (+0100) Subject: Update src/Module/Post/Tag/Remove.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4faad61a7cdb1d5b6ec3bcf80c8dbec5b9b21bf7;p=friendica.git Update src/Module/Post/Tag/Remove.php Co-authored-by: Hypolite Petovan --- 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)];