mirror of
https://github.com/friendica/friendica
synced 2024-12-22 13:20:15 +00:00
Update src/Module/Post/Tag/Remove.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
b612180c22
commit
4faad61a7c
1 changed files with 3 additions and 1 deletions
|
@ -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)];
|
||||
|
|
Loading…
Reference in a new issue