Skip to content

A free, self-hostable news aggregator…

Fix: sharing button in top line when 0 entries (#8010)

maTh960c6c88a5f9
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml
index 7c65d6bbf..f1c5e22f5 100644
--- a/app/views/helpers/index/normal/entry_header.phtml
+++ b/app/views/helpers/index/normal/entry_header.phtml
@@ -4,7 +4,7 @@
$topline_read = FreshRSS_Context::userConf()->topline_read;
$topline_favorite = FreshRSS_Context::userConf()->topline_favorite;
$topline_myLabels = FreshRSS_Context::userConf()->topline_myLabels;
- $topline_sharing = FreshRSS_Context::userConf()->topline_sharing;
+ $topline_sharing = FreshRSS_Context::userConf()->topline_sharing && (count(FreshRSS_Context::userConf()->sharing) > 0);;
$topline_website = FreshRSS_Context::userConf()->topline_website;
$topline_thumbnail = FreshRSS_Context::userConf()->topline_thumbnail;
$topline_summary = FreshRSS_Context::userConf()->topline_summary;