Skip to content

Commit

Permalink
Merge pull request #21 from eaCe/main
Browse files Browse the repository at this point in the history
fix: ensure that user is not null
  • Loading branch information
alxndr-w authored Apr 16, 2023
2 parents baf8ea2 + 2f05beb commit 9be6150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
$user = rex::getUser();

if (rex::isBackend() && rex::getProperty('theme') !== 'dark' && $user->getValue('theme') !== 'dark') {
if (rex::isBackend() && rex::getProperty('theme') !== 'dark' && ($user && $user->getValue('theme') !== 'dark')) {
require_once 'functions/backend_styles.php';

rex_view::addCssFile($this->getAssetsUrl('css/backend.css'));
Expand Down

0 comments on commit 9be6150

Please sign in to comment.