fix php8 error in user.php

This commit is contained in:
Steffen Müller
2024-04-10 15:47:54 +02:00
parent ee37419582
commit f942c4905e
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ Template::render_header(_("User"), true);
?>
<div class="text-center">
<h1><?php
if ($_SESSION['user'] == $_GET['id'])
if (isset($_GET['id']) && isset($_SESSION['user']) && $_SESSION['user'] == $_GET['id'])
{
echo _("User settings");
}else{