Fix compatiliby issue on login with PHP 7.1
session_set_cookie_params does not return any value in PHP 7.1
This commit is contained in:
parent
156061d445
commit
d3f6d52525
2 changed files with 6 additions and 3 deletions
application/render
|
@ -160,7 +160,7 @@ class PageBuilder
|
|||
|
||||
$this->tpl->assign('formatter', $this->conf->get('formatter', 'default'));
|
||||
|
||||
$this->tpl->assign('links_per_page', $this->session['LINKS_PER_PAGE']);
|
||||
$this->tpl->assign('links_per_page', $this->session['LINKS_PER_PAGE'] ?? 20);
|
||||
|
||||
// To be removed with a proper theme configuration.
|
||||
$this->tpl->assign('conf', $this->conf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue