aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-24 11:30:35 +0100
committerGitHub <noreply@github.com>2019-02-24 11:30:35 +0100
commitc21dcc8199ff3bfe8d7eac705d53a45408537c3c (patch)
tree6e501b3bb243d02aba116eac1d5f498de2f2122e /index.php
parent015314f3c6a1ce0b2c45fdb2fb0d36a15cab10f5 (diff)
parentb790f900c937d0d8f6eccc15d2b4c26023f3d276 (diff)
downloadShaarli-c21dcc8199ff3bfe8d7eac705d53a45408537c3c.tar.gz
Shaarli-c21dcc8199ff3bfe8d7eac705d53a45408537c3c.tar.zst
Shaarli-c21dcc8199ff3bfe8d7eac705d53a45408537c3c.zip
Merge pull request #1270 from ArthurHoaro/hotfix/sticky-warning
Fix a warning if links sticky status isn't set
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 9ea26c7c..3700504b 100644
--- a/index.php
+++ b/index.php
@@ -1171,6 +1171,8 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1171 $link['thumbnail'] = $thumbnailer->get($url); 1171 $link['thumbnail'] = $thumbnailer->get($url);
1172 } 1172 }
1173 1173
1174 $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false;
1175
1174 $pluginManager->executeHooks('save_link', $link); 1176 $pluginManager->executeHooks('save_link', $link);
1175 1177
1176 $LINKSDB[$id] = $link; 1178 $LINKSDB[$id] = $link;