mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 12:36:23 +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
|
||||
get('/admin/config/performance', function () {
|
||||
|
||||
$user = $_SESSION[site_url()]['user'];
|
||||
$role = user('role', $user);
|
||||
$user = $_SESSION[site_url()]['user'] ?? null;
|
||||
$role = user('role', $user) ?? null;
|
||||
|
||||
if (login()) {
|
||||
config('views.root', 'system/admin/views');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue