]> git.mxchange.org Git - friendica.git/commitdiff
Avoid warning " Undefined variable $browsershare"
authorMichael <heluecht@pirati.ca>
Wed, 20 Apr 2022 12:03:09 +0000 (12:03 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 20 Apr 2022 12:03:09 +0000 (12:03 +0000)
src/Object/Post.php

index 3090e66ac1fa27b74ffd49776624232cf7cd9db8..2cf02f8e2a1892ffd60fbedba5e03cb428407e4c 100644 (file)
@@ -447,6 +447,8 @@ class Post
 
                if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]) && in_array($item['network'], Protocol::FEDERATED)) {
                        $browsershare = [DI::l10n()->t('Share via ...'), DI::l10n()->t('Share via external services')];
+               } else {
+                       $browsershare = null;
                }
 
                $tmp_item = [