Skip to content

Commit f942c49

Browse files
committed
fix php8 error in user.php
1 parent ee37419 commit f942c49

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

admin/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
?>
4848
<div class="text-center">
4949
<h1><?php
50-
if ($_SESSION['user'] == $_GET['id'])
50+
if (isset($_GET['id']) && isset($_SESSION['user']) && $_SESSION['user'] == $_GET['id'])
5151
{
5252
echo _("User settings");
5353
}else{

template.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php
2+
3+
// enable this for debugging
4+
// error_reporting(E_ALL);
5+
// ini_set('display_startup_errors', 1);
6+
// ini_set('display_errors', 1);
7+
// ini_set("log_errors", 1);
8+
29
$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
310
$classes = array("danger", "warning", "primary", "success" );
411
$icons = array("fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check" );

0 commit comments

Comments
 (0)