aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/render/PageBuilder.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-28 14:02:08 +0100
committerArthurHoaro <arthur@hoa.ro>2020-10-28 14:02:08 +0100
commitd3f6d525253eb7bb041d9436cbf213c10524a85c (patch)
tree014c3658074c29a97b0d5a990d379adbaab8d754 /application/render/PageBuilder.php
parent156061d445fd23d033a52f84954484a3349c988a (diff)
downloadShaarli-d3f6d525253eb7bb041d9436cbf213c10524a85c.tar.gz
Shaarli-d3f6d525253eb7bb041d9436cbf213c10524a85c.tar.zst
Shaarli-d3f6d525253eb7bb041d9436cbf213c10524a85c.zip
Fix compatiliby issue on login with PHP 7.1
session_set_cookie_params does not return any value in PHP 7.1
Diffstat (limited to 'application/render/PageBuilder.php')
-rw-r--r--application/render/PageBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/render/PageBuilder.php b/application/render/PageBuilder.php
index 25e0e284..c2fae705 100644
--- a/application/render/PageBuilder.php
+++ b/application/render/PageBuilder.php
@@ -160,7 +160,7 @@ class PageBuilder
160 160
161 $this->tpl->assign('formatter', $this->conf->get('formatter', 'default')); 161 $this->tpl->assign('formatter', $this->conf->get('formatter', 'default'));
162 162
163 $this->tpl->assign('links_per_page', $this->session['LINKS_PER_PAGE']); 163 $this->tpl->assign('links_per_page', $this->session['LINKS_PER_PAGE'] ?? 20);
164 164
165 // To be removed with a proper theme configuration. 165 // To be removed with a proper theme configuration.
166 $this->tpl->assign('conf', $this->conf); 166 $this->tpl->assign('conf', $this->conf);