]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/Post/Tag/Remove.php
authorArtur Weigandt <Art4@users.noreply.github.com>
Mon, 18 Nov 2024 21:40:05 +0000 (22:40 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 21:40:05 +0000 (22:40 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Post/Tag/Remove.php

index 1ed68e2cfa207770fc0536f664606c17bb0f7ac9..d00e657f0f36f1041939ff7480dc147deaf2b906 100644 (file)
@@ -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)];