Misc: Mitigate PHP 8.1 warnings.

This commit is contained in:
fusionate
2023-09-20 20:49:27 +00:00
parent 044b91ec6c
commit 518c32efe6
5 changed files with 42 additions and 34 deletions

View File

@@ -46,7 +46,7 @@
}
else {
//use custom index, if present, otherwise use custom login, if present, otherwise use default login
if (file_exists($_SERVER["PROJECT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/index.php")) {
if (file_exists($_SERVER["PROJECT_ROOT"]."/themes/".($_SESSION['domain']['template']['name'] ?? '')."/index.php")) {
require_once "themes/".$_SESSION['domain']['template']['name']."/index.php";
}
else {