aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-05-28 20:55:44 +0200
committerGravatar GitHub <noreply@github.com> 2018-05-28 20:55:44 +0200
commit7ebc56e8d3c2f0126d70dc3d5f071f36631a294d (patch)
treefe68bc757c470873fa880e6cca19972b4f695aa5 /app/views
parent5a835f22ce097c1b5d0a4fe0f7113b5455c24cb6 (diff)
Fix null exception in shares (#1898)
https://github.com/FreshRSS/FreshRSS/issues/1824 https://github.com/FreshRSS/FreshRSS/issues/1884
Diffstat (limited to 'app/views')
-rw-r--r--app/views/helpers/index/normal/entry_bottom.phtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml
index bc23938b0..793c644f9 100644
--- a/app/views/helpers/index/normal/entry_bottom.phtml
+++ b/app/views/helpers/index/normal/entry_bottom.phtml
@@ -48,6 +48,9 @@
$title = $this->entry->title() . ' ยท ' . $this->feed->name();
foreach (FreshRSS_Context::$user_conf->sharing as $share_options) {
$share = FreshRSS_Share::get($share_options['type']);
+ if ($share === null) {
+ continue;
+ }
$share_options['link'] = $link;
$share_options['title'] = $title;
$share->update($share_options);