mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
Small PHP 8 bug in /admin/config/performance
This commit is contained in:
parent
e1a74fa05f
commit
e0ca8954c8
1 changed files with 2 additions and 2 deletions
|
|
@ -2461,8 +2461,8 @@ post('/admin/config/security', function () {
|
||||||
// Show Config page
|
// Show Config page
|
||||||
get('/admin/config/performance', function () {
|
get('/admin/config/performance', function () {
|
||||||
|
|
||||||
$user = $_SESSION[site_url()]['user'];
|
$user = $_SESSION[site_url()]['user'] ?? null;
|
||||||
$role = user('role', $user);
|
$role = user('role', $user) ?? null;
|
||||||
|
|
||||||
if (login()) {
|
if (login()) {
|
||||||
config('views.root', 'system/admin/views');
|
config('views.root', 'system/admin/views');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue