Avoid warning " Undefined variable $browsershare"
This commit is contained in:
parent
333863684a
commit
94a8f430e3
1 changed files with 2 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue