aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-19 14:17:00 +0000
committerMario <mario@mariovavti.com>2020-04-19 14:17:00 +0000
commitecb1c78173466b80660f56d95539e0d358e71cd4 (patch)
tree6d9876cf27643916cc9bbed8e01df2a7fb5af619
parent42631b5943551d025c95e0b76e85471f4bde7101 (diff)
downloadvolse-hubzilla-ecb1c78173466b80660f56d95539e0d358e71cd4.tar.gz
volse-hubzilla-ecb1c78173466b80660f56d95539e0d358e71cd4.tar.bz2
volse-hubzilla-ecb1c78173466b80660f56d95539e0d358e71cd4.zip
make sure $post_tags is defined somewhere outsite a clause to prevent PHP warnings
-rw-r--r--Zotlabs/Module/Item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 6de8fe89f..83f99eecd 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -674,6 +674,8 @@ class Item extends Controller {
$str_group_allow = $gacl['allow_gid'];
$str_contact_deny = $gacl['deny_cid'];
$str_group_deny = $gacl['deny_gid'];
+
+ $post_tags = [];
if($mimetype === 'text/bbcode') {
@@ -708,7 +710,6 @@ class Item extends Controller {
// Set permissions based on tag replacements
set_linkified_perms($results, $str_contact_allow, $str_group_allow, $profile_uid, $parent_item, $private);
- $post_tags = array();
foreach($results as $result) {
$success = $result['success'];
if($success['replaced']) {