From 94a8f430e3116844c781b455cb0d2f99206d209d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 20 Apr 2022 12:03:09 +0000 Subject: [PATCH] Avoid warning " Undefined variable $browsershare" --- src/Object/Post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Object/Post.php b/src/Object/Post.php index 3090e66ac1..2cf02f8e2a 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -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 = [