diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-02-09 14:04:16 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2019-02-09 14:04:16 +0100 |
commit | b790f900c937d0d8f6eccc15d2b4c26023f3d276 (patch) | |
tree | 91b4ee8534b6d82ddf413564e100163b602b56a3 /index.php | |
parent | 905f8675a728841b03b300d2c7dc909a1c4f7f03 (diff) | |
download | Shaarli-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.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |