Skip to content

Commit

Permalink
fix php8 error in user.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen-MLR committed Apr 10, 2024
1 parent ee37419 commit f942c49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
?>
<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{
Expand Down
7 changes: 7 additions & 0 deletions template.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

// enable this for debugging
// error_reporting(E_ALL);
// ini_set('display_startup_errors', 1);
// ini_set('display_errors', 1);
// ini_set("log_errors", 1);

$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
$classes = array("danger", "warning", "primary", "success" );
$icons = array("fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check" );
Expand Down

0 comments on commit f942c49

Please sign in to comment.