aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-09 14:04:16 +0100
committerArthurHoaro <arthur@hoa.ro>2019-02-09 14:04:16 +0100
commitb790f900c937d0d8f6eccc15d2b4c26023f3d276 (patch)
tree91b4ee8534b6d82ddf413564e100163b602b56a3 /index.php
parent905f8675a728841b03b300d2c7dc909a1c4f7f03 (diff)
downloadShaarli-b790f900c937d0d8f6eccc15d2b4c26023f3d276.tar.gz
Shaarli-b790f900c937d0d8f6eccc15d2b4c26023f3d276.tar.zst
Shaarli-b790f900c937d0d8f6eccc15d2b4c26023f3d276.zip
Fix a warning if links sticky status isn't set
- initiate its status to false when the link is created - if not defined, initiate its status to false (can happen if the updater hasn't run)
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 633ab89e..1d505305 100644
--- a/index.php
+++ b/index.php
@@ -1181,6 +1181,8 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1181 $link['thumbnail'] = $thumbnailer->get($url); 1181 $link['thumbnail'] = $thumbnailer->get($url);
1182 } 1182 }
1183 1183
1184 $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false;
1185
1184 $pluginManager->executeHooks('save_link', $link); 1186 $pluginManager->executeHooks('save_link', $link);
1185 1187
1186 $LINKSDB[$id] = $link; 1188 $LINKSDB[$id] = $link;